When you want to share a model with a third party without revealing its contents, protect the model. The model protection process compiles the model and packages the derived artifacts in a model reference. For a protected model, you can:
Select optional functionalities for the model, such as simulation, code generation, and viewing a read-only view of the model.
Optionally password-protect the supported functionalities.
Optionally allow the recipient to tune parameters for simulation of the protected model.
Specify what type of generated code to include in the model, such as obfuscated code or compiled code.
Create a project that contains a harness model, the protected model, and the files required to use the protected model.
Digitally sign the protected model. The recipient can verify that the model was created by you and was not changed after you signed it.
Protected Model Information
Create Protected Models
Inspect Protected Models
for use by callbacks
|Get configuration set for current protected model target or for specified target
|Get current protected model target
|Get list of targets that protected model supports
|Get list of tunable parameters for protected model (Since R2022a)
|Open protected model
Customize Protected Models
|Modify existing protected model
|Provide password for digital certificate (Since R2020a)
|Add or provide encryption password for code generation from protected model
|Add or provide password for modifying protected model
|Add or provide encryption password for simulation of protected model
|Add or provide encryption password for read-only view of protected model
|Clear cached passwords for protected models
|Clear cached passwords for a protected model
|Add code generation support for current target to protected model
|Remove support for specified target from protected model
|Configure protected model to use specified target
|Attach digital signature to protected model (Since R2020a)
|Create Protected Model Dialog Box
|Specify model protection options and protect model
- Sign a Protected Model
Attach a digital signature to your protected model.
- Package and Share Protected Models
Files to include in the protected model package.
- Specify Custom Obfuscators for Protected Models
Specify a post-processing function for files that the protected model creation process generates.
- Create Protected Models with Multiple Targets
Create a protected model that supports multiple code generation targets.
- Define Callbacks for Protected Models
Customize protected model behavior by defining callbacks.
- Best Practices for Creating Protected Models
Choose modeling patterns and protection options to allow the functionalities that you want your protected model to support.
- Test Protected Models
Test your protected model by comparing it to the original model.
- Protect Models to Conceal Contents
Protect a model when you want to share a model with a third party without revealing intellectual property.