Borrar filtros
Borrar filtros

How can I save the text in the model workspace variable description?

18 visualizaciones (últimos 30 días)
Adriel
Adriel el 1 de Ag. de 2024 a las 18:15
Comentada: Adriel el 2 de Ag. de 2024 a las 14:55
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)

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 1 de Ag. de 2024 a las 19:11
mw=get_param(bdroot,'ModelWorkspace');
a=mw.getVariable('Param');
>> s=get(a,'Description')
s =
'abc'

Más respuestas (0)

Categorías

Más información sobre Interactive Model Editing en Help Center y File Exchange.

Productos


Versión

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by