produce a cell array of cell arrays of element names
3 次查看(过去 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:
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!