How to initialize once a masked block
Ältere Kommentare anzeigen
I have a masked block in which I add in Initialization pane the following initialization code:
disp('init')
myFunc();
disp('init end');
In myfunc() I have:
disp('in')
% other stuff
When I open my masked block, change some parameters, then press Apply or OK, the MATLAB console prints:
init
in
init end
in
in
in
in
The first three lines are as expected, but do you know why all those extra calls are done, and from where they come from ?
Antworten (0)
Kategorien
Mehr zu Author Block Masks finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!