matlab实现变论域模糊控制出错,三个输入,三个输出
function[sys,x0,str,ts]=bly(t,x,u,flag)
switch flag,
case 0
[sys,x0,str,ts]=mdlInitializeSizes;
case 3
sys=mdlOutputs(t,x,u);
case {1,2,4,9}
sys=[];
otherwise
error(['unhandled flag=',num2str(flag)]);
......................
阅读全部 | 2015年5月10日 10:33
使用s函数实现变论域模糊控制,以e de n为输入,三个输出,仿真一半时出错
function[sys,x0,str,ts]=bly(t,x,u,flag)
switch flag,
case 0
[sys,x0,str,ts]=mdlInitializeSizes;
case 3
sys=mdlOutputs(t,x,u);
case {1,2,4,9}
sys=[];
otherwise
error(['unhandled flag=',num2str(flag)]);
......................
阅读全部 | 2015年5月10日 10:22