matlab sim函数代表什么意思?怎么用的 急!!!

如题所述

执行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帮助文件

温馨提示:答案为网友推荐,仅供参考
第1个回答  2010-05-15
就是运行一个函数吧,顶楼上
执行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.
第2个回答  2010-05-16
运行mdl文件的仿真啊