SIM
模拟a万博1manbetx模型
句法
Description
模拟万博1manbetx®模型代表动态系统。模拟模型使您可以理解系统的行为,这是模拟时间的函数。这SIM
命令使用指定的模型,并将参数应用于模型。在模拟结束时,SIM
命令恢复其应用的任何参数。
使用在模拟
= sim(SIM我n
)万博1manbetxSimulink.SimulationInput
目的SIM我n
。这SIM
命令可以与一个数组一起使用SimulationInput
在系列中运行多个模拟的对象。如果SIM我n
是一个数组万博1manbetxSimulink.SimulationInput
对象,输出作为数组返回万博1manbetxsimulink.simulationOutput
对象。
Examples
输入参数
Output Arguments
更多关于
tips
使用
SIM
命令覆盖在Model Configuration Parameters对话框。该软件在仿真末尾还原原始配置值。
在里面case of a model with aModel块,应用于参数规范the top model.
在使用无限停止时间模拟模型时,要停止模拟,您必须按下ctrl+c。ctrl+c打破仿真,模拟结果未保存在MATLAB工作区中。
要指定模拟的时间跨度,您必须指定
StartTime
和停止时间
参数。要记录模型时间,状态或输出,请使用数据导入/导出pane of the Model Configuration Parameters dialog box.
要记录信号,要么使用到工作区block such as the到工作区block or theScope块,或使用信号记录。有关更多信息,请参阅使用信号记录导出信号数据。
获取模型的仿真参数列表
vdp
,,,,in the MATLAB Command Window, enter:configset = getActiveconfigset('vdp')configsetnames = get_param(configset,'objectparameters')
this command lists several object parameters, including simulation parameters such as
“停止时间”
,,,,'SaveTime'
,,,,“ savestate'
,,,,'SaveOutput'
, 和“信号”
。