How can I programmatically access the description text of the documentation pane of a signal line in Simulink 7.9 (R2012a)?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have added a description in the property dialog documentation pane of a Simulink signal (right click on the signal -> Signal Properties -> Documentation: Description).
I am looking for a way to programmatically access the content of the description field.
Akzeptierte Antwort
MathWorks Support Team
am 22 Mai 2012
You can use the 'Description' property of the 'porthandles' as shown in the following example:
p1 = get_param('signalDoc/Const','porthandles')
get(p1.Outport,'Description')
% set a new description
set(p1.Outport,'Description','My new Description.')
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Prepare Model Inputs and Outputs 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!