How to read Description of all mpt.signal of the Model Explorer
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
Antworten (1)
Muthukumar Ganesan
am 1 Aug. 2022
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 Kommentare
Siehe auch
Kategorien
Mehr zu Stateflow finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!