How to save dictionary to a mat file
15 次查看(过去 30 天)
显示 更早的评论
I could not save dictionary to a mat file using Save Dict D,where Dict is the mat file and D is the dictionary
2 个评论
采纳的回答
Sebastian Castro
2015-7-28
编辑:Sebastian Castro
2015-7-28
I am assuming you're using a Simulink Data Dictionary in R2015a (which is when the official API for data dictionaries came out).
What you need to do is extract whichever of the 3 sections (Design Data, Configurations, and/or Other Data) you need. Then, you can use exportToFile as shown below:
>> d = Simulink.data.dictionary.open('dictionaryName.sldd');
>> data = getSection(d,'Design Data')
>> exportToFile(data,'Data.mat')
- Sebastian
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!