In general, protected models are partially forwards compatible more recent releases of MATLAB/Simulink and not backwards compatible with earlier releases. This is because the model protection process creates compiled MEX binary files. These binaries are incompatible with previous versions of MATLAB and other operating systems. For more information about requirements for running a protected model, see the following link to our documentation:
https://www.mathworks.com/help/releases/R2018b/simulink/ug/use-a-protected-model-in-simulation.html
However, you can use the following workflow to achieve a similar or identical workflow (depending on what functionality your model uses and what release it was introduced in):
- Install the previous release of MATLAB with which you want your model to be compatible
- Export your model to the previous release (see the following documentation for more information about exporting to a previous release: https://www.mathworks.com/help/simulink/ug/saving-a-model.html#f2-86382)
- Resave the model created in the previous step as a protected model.
You can now reference this new protected model in your base model.
For more information about which versions of MATLAB can be used to run an R2018b protected model, see the link below:
https://www.mathworks.com/help/simulink/ug/use-a-protected-model-in-simulation.html#mw_a690f060-562f-4480-8929-d4e084464611
Best Answer