produce a cell array of cell arrays of element names
조회 수: 2 (최근 30일)
이전 댓글 표시
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/245862/error.jpeg)
댓글 수: 0
채택된 답변
YT
2019년 10월 31일
If getElementNames is a function, you should use round brackets instead of curly brackets:
element_names = getElementNames(elements);
댓글 수: 3
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Identification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!