How to initialize once a masked block

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 ?

Answers (0)

Categories

Asked:

AN.
on 9 Apr 2017

Community Treasure Hunt

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

Start Hunting!