Is it possible to use a callback function, InitFcn, under the protected model?

Hi, The version of my MATLAB is 2012a. I would like to do some initial setup under the protected model in Simulink. In order to protect my intellectual property, I hope that setup can be protected and others cannot read. The only way I thought is to use a callback function in one of the block under the protected model. However, the InitFcn function failed after the model become the protected model.
Thanks for your helping

Asked:

on 6 Apr 2016

Answered:

on 7 Jun 2016

Community Treasure Hunt

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

Start Hunting!