How to read Description of all mpt.signal of the Model Explorer
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to write a script to read the description of all signals.
Please suggest the functions available or provide any link through which i can start writing the script.
![MPT Signal.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200539/image.png)
回答 (1 件)
Muthukumar Ganesan
2022 年 8 月 1 日
Hi,
You can start with the following commands.
sflow=sfroot;
model = sflow.find('-isa', 'Stateflow.Chart');
DataArray = model.find('-isa','Stateflow.Data');
where DataArray lists all the data elements corresponding to the model. Description of the data can be accessed using
DataArray(1).Description; %Index into each element to get the description
Hope this helps. Thanks.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!