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

问题描述:

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.
1个回答 分类:综合 2014-11-30

问题解答:

我来补答
嗯,去查一查函数是怎么定义的吧.
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基本的编程思想.
 
 
展开全文阅读
剩余:2000
上一页:hfftbjhg