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 Co
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 07:12:49
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 Co
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 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 Co
嗯,去查一查函数是怎么定义的吧.
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基本的编程思想.