Simulink Reference | ![]() ![]() |
This table lists and describes parameters that describe a model. The parameters appear in the order they are defined in the model file, described in Model File Format. The table also includes model callback parameters, (see Using Callback Routines). The Description column indicates where you can set the value on the Simulation Parameters dialog box. Model parameters that are simulation parameters are described in more detail in The Simulation Parameters Dialog Box. Examples showing how to change parameters follow the table.
Parameter values must be specified as quoted strings. The string contents depend on the parameter and can be numeric (scalar, vector, or matrix), a variable name, a filename, or a particular value. The Values column shows the type of value required, the possible values (separated with a vertical line), and the default value, enclosed in braces.
Parameter |
Description |
Values |
AbsTol |
scalar {1e-6} |
|
AlgebraicLoopMsg |
none | {warning} | error |
|
ArrayBoundsChecking |
'none' | 'warning' | 'error' |
|
BooleanDataType |
on | {off} |
|
BufferReuse |
{on} | off |
|
CloseFcn |
command or variable |
|
ConfigurationManager |
text |
|
ConsistencyChecking |
on | {off} |
|
Created |
text |
|
Creator |
text |
|
Decimation |
scalar {1} |
|
DefaultBlockFontSize |
{10} |
|
Description |
text |
|
ExternalInput |
scalar or vector [t, u] |
|
FinalStateName |
variable {xFinal} |
|
FixedStep |
scalar {auto} |
|
InitialState |
variable or vector {xInitial} |
|
InitialStep |
scalar {auto} |
|
InvariantConstants |
on | {off} |
|
LimitDataPoints |
on | {off} |
|
LoadExternalInput |
on | {off} |
|
LoadInitialState |
on | {off} |
|
MaxDataPoints |
scalar {1000} |
|
MaxOrder |
1 | 2 | 3 | 4 | {5} |
|
MaxStep |
scalar {auto} |
|
MinStepSizeMsg |
{warning} | error |
|
ModelVersionFormat |
text |
|
ModifiedBy |
text |
|
ModifiedDateFormat |
text |
|
Name |
text |
|
ObjectParameters |
structure |
|
OutputOption |
AdditionalOutputTimes | |
|
OutputSaveName |
variable {yout} |
|
OutputTimes |
vector {[]} |
|
PaperOrientation |
portrait | {landscape} |
|
PaperPosition |
[left, bottom, width, height] |
|
PaperPositionMode |
auto | {manual} |
|
PaperSize |
[width height] (read only) |
|
PaperType |
{usletter} | uslegal | a0 | a1 | a2 | a3 | a4 | a5 | b0 | b1 | b2 | b3 | b4 | b5 | arch-A | arch-B | arch-C | arch-D | arch-E | A | B | C | D | E | tabloid |
|
PaperUnits |
normalized | {inches} | centimeters | points |
|
PostLoadFcn |
command or variable |
|
PreLoadFcn |
command or variable |
|
Refine |
scalar |
|
RelTol |
scalar {1e-3} |
|
SampleTimeColors |
on | {off} |
|
SaveFcn |
command or variable |
|
SaveFinalState |
on | {off} |
|
SaveFormat |
Array | Structure | StructureWithTime |
|
SaveOutput |
{on} | off |
|
SaveState |
on | {off} |
|
SaveTime |
{on} | off |
|
ScreenColor |
black | {white} | red | green | blue | cyan | magenta | yellow | gray | lightBlue | orange | darkGreen |
|
ShowLineWidths |
on | {off} |
|
SimulationCommand |
start | stop | pause | continue | update |
|
SimParamPage |
Simulation Parameters dialog box page to display (page last displayed) |
{Solver} | WorkspaceI/O | Diagnostics |
Solver |
{ode45} | ode23 | ode113 | ode15s | ode23s | ode5 | ode4 | ode3 | ode2 | ode1 | FixedStepDiscrete | VariableStepDiscrete |
|
StartFcn |
command or variable |
|
StartTime |
scalar {0.0} |
|
StateSaveName |
variable {xout} |
|
StopFcn |
command or variable |
|
StopTime |
scalar {10.0} |
|
TimeSaveName |
variable {tout} |
|
UnconnectedInputMsg |
none | {warning} | error |
|
UnconnectedLineMsg |
none | {warning} | error |
|
UnconnectedOutputMsg |
none | {warning} | error |
|
Version |
(release) |
|
WideVectorLines |
on | {off} |
|
ZeroCross |
Intrinsic zero-crossing detection (see Zero-Crossing Detection) |
{on} | off |
These examples show how to set model parameters for the mymodel
system.
This command sets the simulation start and stop times.
This command sets the solver to ode15s
and changes the maximum order.
This command associates a SaveFcn
callback.
![]() | Model and Block Parameters | Common Block Parameters | ![]() |