How can I programmatically access the description text of the documentation pane of a signal line in Simulink 7.9 (R2012a)?
3 次查看(过去 30 天)
显示 更早的评论
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.
采纳的回答
MathWorks Support Team
2012-5-22
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!