| Contents | Index |
Simulink.ModelReference.protect('model')
Simulink.ModelReference.protect('model',
'Path', pathname)
[harnessHandle] = Simulink.ModelReference.protect('model',
'Harness', true)
[~ ,neededVars] = Simulink.ModelReference.protect('model')
[harnessHandle,neededVars]
= Simulink.ModelReference.protect('model',
'Path', pathname, 'Harness', true)
Simulink.ModelReference.protect('model') creates a protected model from model and puts that protected model in the current folder. The protected model has the same name as the source model, and the suffix .mdlp.
Simulink.ModelReference.protect('model', 'Path', pathname) puts the protected model in the folder specified by pathname.
[harnessHandle] = Simulink.ModelReference.protect('model', 'Harness', true) creates a harness model for the protected model and returns the handle of the harnessed model in harnessHandle.
[~ ,neededVars] = Simulink.ModelReference.protect('model') returns a cell array. The cell array includes the names of all base workspace entities that the protected model might need in order to execute.
[harnessHandle,neededVars] = Simulink.ModelReference.protect('model', 'Path', pathname, 'Harness', true) combines the effect of all the preceding syntaxes into a single call.
Create a protected model for the sldemo_mdlref_counter_bus model, specifying the name of the model.
sldemo_mdlref_bus
Simulink.ModelReference.protect('sldemo_mdlref_counter_bus')Create a protected model for sldemo_mdlref_counter_bus model, specifying the full path to a Model block that references the sldemo_mdlref_counter_bus model.
sldemo_mdlref_bus
Simulink.ModelReference.protect('sldemo_mdlref_bus/CounterA')
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |