| Using Simulink | ![]() |
Get options structure properties and parameters.
Syntax
struct = simget(model)
value = simget(model, property)
value = simget(OptionStructure, property)
Description
The simget command gets simulation parameter and solver property values for the specified Simulink model. If a parameter or property is defined using a variable name, simget returns the variable's value, not its name. If the variable does not exist in the workspace, Simulink issues an error message.
struct = simget(model) returns the current options structure for the specified Simulink model. The options structure is defined using the sim and simset commands.
value = simget(model, property) extracts the value of the named simulation parameter or solver property from the model.
value = simget(OptionStructure, property) extracts the value of the named simulation parameter or solver property from OptionStructure, returning an empty matrix if the value is not specified in the structure. property can be a cell array containing the list of parameter and property names of interest. If a cell array is used, the output is also a cell array.
You need to enter only as many leading characters of a property name as are necessary to uniquely identify it. Case is ignored for property names.
Examples
This command retrieves the options structure for the vdp model.
options = simget('vdp');
This command retrieves the value of the Refine property for the vdp model.
refine = simget('vdp', 'Refine');
See Also
| simset | Analyzing Simulation Results | ![]() |