Simulink.ProtectedModel.removeTarget
Remove support for specified target from protected model
Description
Simulink.ProtectedModel.removeTarget(
removes
code generation support for the specified target from a protected
model. You must provide the modification password to make this update.
Removing a target does not require access to the unprotected model.protectedModel
,targetID
)
Note
You cannot remove the sim
target. If you
do not want the protected model to support simulation, use the Simulink.ModelReference.modifyProtectedModel
function
to change the protected model mode to ViewOnly
.
Examples
Input Arguments
Version History
Introduced in R2015a