How to store Data in a MATLAB® data file as a MATLAB dataset object?

1 回表示 (過去 30 日間)
Rubens
Rubens 2019 年 3 月 13 日
回答済み: per isakson 2019 年 3 月 14 日
Hi Community,
I wanted to apply the MATLAB example for empirical yield curve modelling from the Diebold and Li (2005) model: "Fitting the Diebold Li Model". Unfortunately it is unclear to me how to store the Data (only available as .xml and .xsd). in a MATLAB® data file as a MATLAB dataset object.
I loaded the .xml into matlab and simply saved it as .mat. However Matlab is unable to read the file. I would be really happy, if someone could help me on understanding what is meant by storing the data in a MATLAB® data file/ MATLAB dataset object. (I use R2017b)
Thank you very much,
Rubens

回答 (1 件)

per isakson
per isakson 2019 年 3 月 14 日
I successfully (R2018b) ran the example of the documentation that you linked to. Did you try it?
"MATLAB dataset object" see dataset, Class: dataset .
"and simply saved it as .mat. However Matlab is unable to read the file" Hard to believe! What did the error message say?
"I loaded the .xml into matlab" did you use the function xmlread()?
Did you inspect the data loaded by
load Data_USYieldCurve

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by