作业帮 > 综合 > 作业

matlab出错问题Warning:The model 'demo2' does not have continuous

来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/12 02:55:56
matlab出错问题
Warning:The model 'demo2' does not have continuous states,hence using the solver 'VariableStepDiscrete' instead of solver 'ode45'.
You can disable this diagnostic by explicitly specifying a discrete solver in the solver tab of the Configuration Parameters dialog,or
setting 'Automatic solver parameter selection' diagnostic to 'none' in the Diagnostics tab of the Configuration Parameters dialog.
Warning:Using a default value of 0.002 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.
matlab出错问题Warning:The model 'demo2' does not have continuous
嗯,去查一查函数是怎么定义的吧.
function[y,ny]=conv_m(x,nx,h,nh)
nyb=nx(1)+nh(1);
nye=nx(length(x))+nh(length(h));
ny=[nyb:nye];y=conv(x,h);
这一段必须保存为一个名叫conv_m的m文件,才能在命令窗口里面调用.这是MATLAB基本的编程思想.