How do I store output of listEntry function in a variable
4 ビュー (過去 30 日間)
古いコメントを表示
As I am new to matlab, I don't know the way to store the output of listEntry function in a variable.
I need to access that variable as an array so that I can iterate over one of its column.
Thanks in advance.
0 件のコメント
回答 (2 件)
HaMo
2018 年 6 月 11 日
This is a workaround I came up with:
dictObj = Simulink.data.dictionary.open('MyDictionary.sldd');
secObj = getSection(dictObj, 'MySection');
entries = secObj.find;
variableNames = {entries.Name};
0 件のコメント
Natalie E
2025 年 4 月 15 日
You can also use the following to literally 'steal' the output of listEntry (useful for optional arguments for sorting):
slddObj = Simulink.data.dictionary.open('MySldd.sldd');
output = evalc('listEntry(slddObj)');
You'll have to clean up the results a little bit to get rid of the headers but the data is there.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!