Effacer les filtres
Effacer les filtres

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

18 vues (au cours des 30 derniers jours)
Adriel
Adriel le 1 Août 2024 à 18:15
Commenté : Adriel le 2 Août 2024 à 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)

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 1 Août 2024 à 19:11
mw=get_param(bdroot,'ModelWorkspace');
a=mw.getVariable('Param');
>> s=get(a,'Description')
s =
'abc'

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Model Editing dans Help Center et File Exchange

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by