produce a cell array of cell arrays of element names

3 Ansichten (letzte 30 Tage)
Anju Mohokar
Anju Mohokar am 31 Okt. 2019
Kommentiert: Anju Mohokar am 12 Nov. 2019
I want to create a cell from a cell arrays of simulink. elements present in matlab workspace. I have tried with below command in matlab 2019b
element_names = getElementNames{elements}; // whereas elements is the name of cell in workspace with all elements.
and getting below error:
error.JPG

Akzeptierte Antwort

YT
YT am 31 Okt. 2019
If getElementNames is a function, you should use round brackets instead of curly brackets:
element_names = getElementNames(elements);
  3 Kommentare
YT
YT am 1 Nov. 2019
You should check the documentation, which states you should input a Simulink.SimulationData.Dataset object, not just a cell:
element_list = getElementNames(dataset) returns the names of all of the elements in the Simulink.SimulationData.Dataset object.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Identification finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by