MATLAB: Generate prices for vanilla interest rate swaps from LIBOR curve

financialinstrumentsinterestliborMATLABrateswaptoolboxvanilla

The examples listed below invoke EDdata.xls, which quotes swap contracts in prices. I want to construct a program to produce prices for vanilla interest rate swaps based on a term structure of interest rates (a.k.a. the LIBOR curve). Is there a function like "curve2price" or a shortcut to create one?
liborfloat2fixed:<https://www.mathworks.com/help/fininst/liborfloat2fixed.html#examples https://www.mathworks.com/help/fininst/liborfloat2fixed.html#examples>
liborprice: <https://www.mathworks.com/help/fininst/liborprice.html?s_tid=doc_ta#examples>

Best Answer

MATLAB has a function "swapbyzero" which will enable you to generate prices based off vanilla interest rate swaps using a term structure of interest rates (zero curve). You can find more information below:
https://www.mathworks.com/help/fininst/swapbyzero.html