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 CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by