https://nl.mathworks.com/help/finance/tbilldisc2yield.html
tbilldisc2yield - Convert Treasury bill discount to equivalent yield - MATLAB
This MATLAB function converts the discount rate on Treasury bills into their respective money-market or bond-equivalent yields.
treasury billconvertdiscountequivalentyield