1.simulink里matlab function模块的output width是用来定义输出矩阵的大小。
2.>>
plot(tout,simout(:,2),tout,simout(:,3))
Warning: Using a default value of 0.2 for maximum step
size. The simulation step size will be equal to
or less than this value. You can disable this
diagnostic by setting 'Automatic solver parameter selection'
diagnostic to 'none' in the Diagnostics page of the configuration
parameters dialog.
这是因为Configuration Parameter里Max step
size设为auto或者0.2。之所以为0.2是因为图形轴或示波器时间轴为10s,默认采样点为50,0.2=(10-0)/50
。Max step
size 一定要小于等于0.2,该值越小绘制的图形越平滑,但计算量越大
3.消除该警告
Warning: Using a default value of 0.2 for maximum step
size. The simulation
step size will be equal to or less than this
value. You can disable this
diagnostic by setting 'Automatic solver parame
最后
以上就是彩色小甜瓜最近收集整理的关于matlab simout,每日学习Matlab(2)的全部内容,更多相关matlab内容请搜索靠谱客的其他文章。
发表评论 取消回复