produce a cell array of cell arrays of element names

3 ビュー (過去 30 日間)
Anju Mohokar
Anju Mohokar 2019 年 10 月 31 日
コメント済み: Anju Mohokar 2019 年 11 月 12 日
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

採用された回答

YT
YT 2019 年 10 月 31 日
If getElementNames is a function, you should use round brackets instead of curly brackets:
element_names = getElementNames(elements);
  3 件のコメント
YT
YT 2019 年 11 月 1 日
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.
Anju Mohokar
Anju Mohokar 2019 年 11 月 12 日
Thanks..!!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by