How to save dictionary to a mat file
조회 수: 8 (최근 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!