https://jp.mathworks.com/help/finance/tbillyield2disc.html
tbillyield2disc - Convert Treasury bill yield to equivalent discount - MATLAB
This MATLAB function converts the yield on some Treasury bills into their respective discount rates.
treasury billconvertyieldequivalentdiscount