How to build a zero curve object from excel

2 ビュー (過去 30 日間)
Greg
Greg 2025 年 6 月 23 日
コメント済み: Greg 2025 年 6 月 25 日
I would like to create a matlab ratecurve object directly inside excel. My goal is to have a few ranges in excel for ratecurve object inputs - market rates (overrnight rate, notes, bonds), curve build features act-360, days to spot, holiday types, etc. I then build a ratecurve object from which I can pull zero rates or discount factors for use elsewhere in the workbook. For example - if i wanted to discount a forward cash flow using the matlab generated zero curve i could have a function similar to =matlabdiscountfactor(curveid, forwarddate), that looks to the ratecurve object.

採用された回答

Jacob Mathew
Jacob Mathew 2025 年 6 月 25 日
Hey @Greg,
You can follow the below example provided by MathWorks to read spreadsheets into MATLAB Table. This should enable you to read data from your Microsoft Excel spreadsheet:
Note that there are two seperate methods to deal with a single worksheet (readtable) or mulitiple worksheets (spreadsheetDatastore).
Once you have read the spreadsheet into MATLAB workspace, you can then create your ratecurve by following the below example:
  1 件のコメント
Greg
Greg 2025 年 6 月 25 日
Thank you very much Jacob - I am going to explore these links. I am a newbie to MathWorks as you can probably sense... thanks for getting me started!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

製品


リリース

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by