sim函数

来源:百度文库 编辑:神马文学网 时间:2024/10/04 03:31:28
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.