How can I save the text in the model workspace variable description?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Adriel
el 1 de Ag. de 2024
Comentada: Adriel
el 2 de Ag. de 2024
I want to save in as a string variable the text in the description of the simulink parameter that is in the simulink model workspace (image)

0 comentarios
Respuesta aceptada
Fangjun Jiang
el 1 de Ag. de 2024
mw=get_param(bdroot,'ModelWorkspace');
a=mw.getVariable('Param');
>> s=get(a,'Description')
s =
'abc'
Más respuestas (0)
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!