tunablevars2parameterobjects - Create Simulink parameter objects from tunable parameters

Syntax

tunablevars2parameterobjects (modelName)
tunablevars2parameterobjects (modelName, class)

Arguments

modelName

Model name or handle

class

Parameter class to use for creating objects. Default: Simulink.Parameter.

Description

This function creates Simulink parameter objects in the base workspace for the variables listed in a 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 class is specified, the parameter objects are of that class. Otherwise, the parameter objects default to class Simulink.Parameter.

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.

See Also

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS