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

4 次查看(过去 30 天)
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')).

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Author Block Masks 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by