作业帮 > 综合 > 作业

使用matlab的simulink仿真时出现警告 怎么处理

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/04 12:02:03
使用matlab的simulink仿真时出现警告 怎么处理
Using a default value of 0.2 for maximum step size. The simulation step size will be limited to be less than this value.
Warning: The model 'mz10291' does not have continuous states, hence using the solver 'VariableStepDiscrete' instead of the solver 'ode45' specified in the Configuration Parameters dialog.
Warning: Using a default value of 0.2 for maximum step size. The simulation step size will be limited to be less than this value.
>>
这几个警告都没什么,不用担心.
Using a default value of 0.2 for maximum step size.The simulation step size will be limited to be less than this value.这是因为你没有设置仿真最大步长,因此simulink使用了默认步长0.2s.
Warning:The model 'mz10291' does not have continuous states,hence using the solver 'VariableStepDiscrete' instead of the solver 'ode45' specified in the Configuration Parameters dialog.这是说你的模型当中不含连续状态,因此使用了变步长离散求解器,而不是仿真的默认求解器ode45(4阶5级龙格-库塔法).
再问: 那步长应该设置为多少合适呢,刚开始学,很多不懂。可以加QQ给指导指导吗1027642039
再答: 看你仿真对象的最高频率了。你关心的最高频率信号的周期如果是T,那么最大仿真步长一般设置为T/10.