Simulink.ProtectedModel.addTarget
Add code generation support for current target to protected model
Description
Simulink.ProtectedModel.addTarget(
adds
code generation support for the current model
)model
target
to a protected model of the same name. Each target that the protected
model supports is identified by the root of the Code Generation
> System Target file (SystemTargetFile
)
parameter. For example, if the System Target file is ert.tlc
,
the target identifier is ert
.
To add the current target:
The model and the protected model of the same name must be on the MATLAB® path.
The protected model must have the
Modifiable
option enabled and have a password for modification.The target must be unique in the protected model.
If you add a target to a protected model that did not previously
support code generation, the software switches the protected model Mode
to CodeGeneration
and ObfuscateCode
to true
.
Examples
Input Arguments
Version History
Introduced in R2015a