How do I store output of listEntry function in a variable

9 views (last 30 days)
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.

Answers (1)

HaMo
HaMo on 11 Jun 2018
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};

Categories

Find more on Dialog Boxes in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!