How to save dictionary to a mat file
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
D Joseph
el 28 de Jul. de 2015
Comentada: D Joseph
el 29 de Jul. de 2015
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 comentarios
Respuesta aceptada
Sebastian Castro
el 28 de Jul. de 2015
Editada: Sebastian Castro
el 28 de Jul. de 2015
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!