incorrect number of input arguments for [K,CL,GAM,INFO] = hinfsyn(P)

2 views (last 30 days)
Here my program for finding H-infinity control it satisfys the all assumptions but shows error:
A=[-6.97e003 -6.67e003 0;45.45e003 0 0;-2550 -2550 -2555];
B=[0 6.67e003 0 6.67e003;0 -45.45e003 0 0;255e003 2550 2550 0];
C=[-1 -1 1;0 0 0;-1 -1 0];
D=[100 1 1 0;0 0 0 1.85;100 1 1 0];
%%
%assumptions start
A=[-6.97e003 -6.67e003 0;45.45e003 0 0;-2550 -2550 -2555];
B1=[0 6.67e003 0;0 -45.45e003 0;255e003 2550 2550]
B2=[6.67e003;0;0]
C1=[-1 -1 1;0 0 0]
C2=[-1 -1 0]
D12=[0;1.85]
D21=[100 1 1]
P=[A-j*3*eye(3) B2; C1 D12]
p1=rank(P)
q=[A-j*3*eye(3) B1; C2 D21]
q1=rank(q)
%assumption end
P=ltisys(A,B,C,D)
[K,CL,GAM,INFO] = hinfsyn(P)
Error:
??? Error using ==> hinfsyn at 137
incorrect number of input arguments
Error in ==>
[K,CL,GAM,INFO] = hinfsyn(P)
if anybody known this one help
thank u....

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!