parsim
以并行或串行方式进行多次动态系统仿真
说明
使用 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
以串行方式运行仿真。
示例
输入参数
输出参数
扩展功能
版本历史记录
在 R2017a 中推出
另请参阅
Simulink.SimulationInput
| Simulink.Simulation.Future
| applyToModel
| setBlockParameter
| setModelParameter
| setInitialState
| ExternalInput
| setVariable
| validate
| setPreSimFcn
| setPostSimFcn
| Simulation
Manager
| cancel
| fetchNext
| fetchOutputs
| wait
主题
- Rapid Accelerator Simulations Using Parsim
- Parallel Simulations Using Parsim: Test-Case Sweep
- Parallel Simulations Using Parsim: Parameter Sweep in Normal Mode
- Parallel Simulations Using Parsim: Parameter Sweep in Rapid Accelerator Mode
- Running Multiple Simulations
- Run Parallel Simulations for a Thermal Model of a House Using parsim
- 运行并行仿真