Simulink-Blockmask: How to add a button and assign a callback by m-file script?

2 vues (au cours des 30 derniers jours)
I what to modify many library elements programmatically and add some buttons to the block mask. How can this be done?
(After adding some buttons to the mask manually I can't find any changes with get_param(gcb,'ObjectParameters')).

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 12 Oct 2020
To get mask parameters
get_param(gcb,'MaskNames'), or 'MaskVariables','MaskPropertyNameString',...
To do mask programmatically
web(fullfile(docroot, 'simulink/slref/simulink.mask-class.html'))

Plus de réponses (0)

Catégories

En savoir plus sur Author Block Masks dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by