执行simulink模型用的命令 相当于windows里的run命令
sim(model,timespan,options,ut);
[t,x,y] = sim(model,timespan,options,ut);
[t,x,y1, y2, ..., yn] = sim(model,timespan,options,ut);
Description
The sim command causes the specified Simulink model to be executed. The model is executed with the data passed to the sim command, which may include parameter values specified in an options structure. The values in the structure override the values shown for block diagram parameters in the Configuration Parameters dialog box, and the structure may set additional parameters that are not otherwise available (such as DstWorkSpace). The parameters in an options structure are useful for setting conditions for a specific simulation run.
参考资料:MATLAB帮助文件