[求助]hinfsyn命令怎么用啊?!
我要用hinfsyn命令设计一个H无穷控制器,命令如下:=hinfsyn(p,1,1,0,10,0.0001,1).主要是控制对象P怎么输入?
p=(a;b1 b2;c1 d11 d12;c2 d21 d22)的形式.
我输入的不对,matlab提醒我不是system matrix.
请问如何正确输入p?下面是我的p:
a=[0,0,0,0,0,0,1,0,0,0,0,0;
0,0,0,0,0,0,0,1,0,0,0,0;
0,0,0,0,0,0,0,0,1,0,0,0;
0,0,0,0,0,0,0,0,0,1,0,0;
0,0,0,0,0,0,0,0,0,0,1,0;
0,0,0,0,0,0,0,0,0,0,0,1;
-17910.47,0,0,0,0,0,-0.80298,0,0,0,0,0;
0,-234623.98,0,0,0,0,0,-2.90628,0,0,0,0;
0,0,-1138702.41,0,0,0,0,0,-6.4026,0,0,0;
0,0,0,-3543306.28,0,0,0,0,0,-11.2942,0,0;
0,0,0,0,0,-8587478.59,0,0,0,0,-17.5826,0;
0,0,0,0,0,-17735131.92,0,0,0,0,0,-25.2679];
b1=;
b2=b1;
c1=;
c2=[-29.92,-227.37,-765.88,-1818.95,-3548.16,-6132.99,0,0,0,0,0,0];
d11=;
d12=;
d21=0.033;
d22=0.033;
sorry!
sorry!我发的C1太长,C1修改如下:
c1=[1,0,0,0,0,0,0,0,0,0,0,0;
0,1,0,0,0,0,0,0,0,0,0,0;
0,0,1,0,0,0,0,0,0,0,0,0;
0,0,0,1,0,0,0,0,0,0,0,0;
0,0,0,0,1,0,0,0,0,0,0,0;
0,0,0,0,0,1,0,0,0,0,0,0;
0,0,0,0,0,0,0,0,0,0,0,0;
0,0,0,0,0,0,0,0,0,0,0,0;
0,0,0,0,0,0,0,0,0,0,0,0;
0,0,0,0,0,0,0,0,0,0,0,0;
0,0,0,0,0,0,0,0,0,0,0,0;
0,0,0,0,0,0,0,0,0,0,0,0;
0,0,0,0,0,0,0,0,0,0,0,0;
0,0,0,0,0,0,0,0,0,0,0,0;
0,0,0,0,0,0,0,0,0,0,0,0];
回复:(tianfen)[求助]hinfsyn命令怎么用啊?!
你的输入好像对不上吧 可以的,我试过,各部分矩阵都是符合维度的,用p=(a b1 b2;c1 d11 d12;c2 d21 d22)可以得到一个矩阵的.不过就是用hinfsyn时不行啊!回复:(tianfen)[求助]hinfsyn命令怎么用啊?!
看了一下这个错误是检查你的p矩阵是否是系统矩阵造成的对于控制理论不太熟悉不知道什么样是系统矩阵
在matlab检查是否是系统矩阵是有minfo这个函数完成的
你可以doc minfo看看 呵呵,先谢谢了。我问过我师兄,他也不会,我先看看帮助吧,估计还是不会。 呵呵。我把它改成了:
b=;
c=;
d=;
p=pck(a,b,c,d) 就有结果了,不过不知道这个结果对不对。
页:
[1]