How do I store output of listEntry function in a variable

8 ビュー (過去 30 日間)
manish kumar
manish kumar 2017 年 12 月 11 日
回答済み: HaMo 2018 年 6 月 11 日
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.

回答 (1 件)

HaMo
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};

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by