How do I store output of listEntry function in a variable

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.

답변 (2개)

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};
Natalie E
Natalie E 2025년 4월 15일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Software Development에 대해 자세히 알아보기

질문:

2017년 12월 11일

답변:

2025년 4월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by