Why is the initialization code for a block mask not executed in protected models?
Show older comments
I have a protected model reference containing blocks with initialization commands specified on the Initialization pane of the Mask Editor. I expect these commands to execute at model update (Ctrl+D). However, I noticed that they do not execute when I run or update my model.
However, if I use a model reference(unprotected) in place of the protected model reference, the initialization callback runs fine.
How do I use the Initialization commands callback in a protected model reference?
Accepted Answer
More Answers (0)
Categories
Find more on Model, Block, and Port Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!