[t, x, y]=sim ('model name')
The parameters of the dialog box are used for simulation, and the output matrix is returned;
[t, x, y]=sim ('model name', time span, options, ut)
Input parameters are used for simulation, and the output matrix is returned;
[t,x,y 1,y2,...yn]=sim('modelname ',timespan,options,ut)
Input parameters are used for simulation, and outputs are returned one by one;
Parameter description:
The modelname (excluding the extension) that "modelname" runs must be on the search path of Matlab.
Timespan specifies the time interval of simulation, which can be in the following format:
(1)[] is empty, use the model dialog box to set the time;
(2)T_final scalar, which determines the end time of simulation;
(3)[T_start T_final] binary vector, which specifies the simulation time interval;
(4)outputTimes arbitrarily specifies the vector of the output time recording point.
The specific data structure of options MATLAB has the highest priority and can override the settings in the Model Parameters dialog box.
The number assigned by ut to the analog object number input module has the highest priority setting, and it is a numerical matrix in the form of [t, u 1, u2 ...], each of which is a time series or an input sequence.