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 ?

답변 (0개)

카테고리

도움말 센터File Exchange에서 Author Block Masks에 대해 자세히 알아보기

질문:

AN.
2017년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by