https://www.mathworks.com/help/fininst/inflationcurve.html
inflationcurve - Create inflationcurve object for interest-rate curve from dates and data - MATLAB
Build an inflationcurve object using inflationcurve.
create objectinterest rate
https://www.mathworks.com/help/fininst/inflationcurve.indexvalues.html
indexvalues - Calculate index values for inflationcurve object - MATLAB
This MATLAB function calculates the inflation index values for the inflationcurve object (inpInflationCurve) based on the Inflation index end dates (inpDates).
index valuescalculateobjectmatlab