以并行或串行方式进行多次动态系统仿真
使用 simOut
= parsim(in
)SimulationInput
对象 in 中指定的输入对模型进行仿真。parsim
命令使用 SimulationInput
对象的数组来运行多个仿真。
使用 simOut
= parsim(in
,'ShowSimulationManager'
,'on'
)SimulationInput
对象中指定的输入对模型进行并行仿真,并打开仿真管理器 UI。有关详细信息,请参阅 Simulation
Manager
。
使用 simOut
= parsim(in
,Name,Value
)SimulationInput
对象中指定的输入和指定为 Name,Value
对组的选项对模型进行并行仿真。
parsim
命令使用 Parallel Computing Toolbox™ 许可证以并行方式运行仿真。如果无法创建并行池,或者未使用 Parallel Computing Toolbox,则 parsim
以串行方式运行仿真。
applyToModel
| cancel
| ExternalInput
| fetchNext
| fetchOutputs
| setBlockParameter
| setInitialState
| setModelParameter
| setPostSimFcn
| setPreSimFcn
| setVariable
| Simulation
Manager
| Simulink.Simulation.Future
| Simulink.SimulationInput
| validate
| wait