admin 管理员组文章数量: 1086019
I recently started working with data dictionaries in Matlab Simulink as it a efficient way to manage the data. I could assign entries for Matlab parameters etc.; however, I am trying to save a structure containing table data (multiple tables) in a data dictionary. The problem is if I simply add an entry using addEntry
, I longer can access the internal tables and could see their values or names. Whereas I tried to add Datatype in Architectural section of data dictionary but I can't assign it in design data.
So is there any way that I can assign a 1X1 struct
with 7 fields containing tables in the design data section of data dictionary or I should assign the columns of tables to different variables in base workspace to save them as Matlab parameters by using addEntry
?
Sample code:
DictionaryFile='myDictionary.sldd';
myDictionaryObj = Simulink.data.dictionary.open(DictionaryFile);
toolDataSectObj=getSection(myDictionaryObj,'Design Data');
addEntry(toolDataSectObj,'TableData',TableStrucutre);
Thank you.
本文标签: simulinkSave a structure in MATLAB data dictionaryStack Overflow
版权声明:本文标题:simulink - Save a structure in MATLAB data dictionary - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1744095077a2532750.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论