Create Simulink parameter objects from tunable parameters
tunablevars2parameterobjects ('
modelName
')
tunablevars2parameterobjects ('modelName
', class
)
tunablevars2parameterobjects ('
creates modelName
')Simulink.Parameter
objects
in the base workspace for the variables listed in the specified model's
Tunable Parameters dialog, then deletes the source information from
the dialog. To preserve the information, save the resulting Simulink® parameter
objects into a MAT-file.
If a tunable variable is already defined as a numeric variable in the base workspace, the variable will be replaced by a parameter object and the original variable will be copied to the object's Value property.
If a tunable variable is already defined as a Simulink parameter object, the object will not be modified but the information for the variable will still be deleted from the Tunable Parameters dialog.
If a tunable variable is defined as any other class of variable, the variable will not be modified and the information for the variable will not be deleted from the Tunable Parameters dialog.
tunablevars2parameterobjects ('
creates
objects of the specified class rather than modelName
', class
)Simulink.Parameter
objects.
|
Model name or handle |
|
Parameter class to use for creating objects Default: |