| Simulink® | ![]() |
struct = simget(model) value = simget(model, 'param') value = simget(OptionStructure, param) simget
struct = simget(model) returns the current simulation parameter settings for the specified model as a structure compatible with the options argument of the sim command. You can use this command along with the simset command to override model-specified simulation options for a particular simulation run. See simset for more information. If the model uses a workspace variable to specify a simulation parameter, simget returns the variable's value, not its name. If the variable does not exist in the workspace, Simulink software issues an error message.
value = simget(model, 'param') returns the value of the simulation parameter, 'param', specified by the model, model.
value = simget(OptionStructure, param) extracts the value of the specified simulation parameter from OptionStructure, returning an empty matrix if the value is not specified in the structure. param can be a cell array containing a list of parameter names. If a cell array is used, the output is also a cell array.
simget returns a structure containing the names of simulation parameters recognized by the simget command.
You need to enter only as many leading characters of a property name as are necessary to identify it.
This command retrieves the simulation options for the vdp model.
options = simget('vdp');
This command retrieves the value of the Refine property for the vdp model.
refine = simget('vdp', 'Refine');
![]() | sim | simplot | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |