필터 지우기
필터 지우기

mixsyn-error: Output argument "r12" (and maybe others) not assigned during call to "hinf_st"

조회 수: 2 (최근 30일)
Hey, I would like to solve the inverted pendulum control problem with the mixsyn-function but unfortunately I can't make it work.
The error says: Output argument "r12" (and maybe others) not assigned during call to "hinf_st"
Here is my code:
M = .5; m = 0.2; b = 0.1; I = 0.006; g = 9.8; l = 0.3;
p = I*(M+m)+M*m*l^2; %denominator for the A and B matrices
A = [0 1 0 0;
0 -(I+m*l^2)*b/p (m^2*g*l^2)/p 0;
0 0 0 1;
0 -(m*l*b)/p m*g*l*(M+m)/p 0];
B = [ 0;
(I+m*l^2)/p;
0;
m*l/p];
C = [1 0 0 0;
0 0 1 0];
D = [0;
0];
states = {'x' 'x_dot' 'phi' 'phi_dot'};
inputs = {'u'};
outputs = {'x'; 'phi'};
sys_ss = ss(A,B,C,D,'statename',states,'inputname',inputs,'outputname',outputs);
G = tf(minreal(sys_ss));
M = 2; wB1 = 6; wB2 = 12; A = 1e-3;
s = tf('s');
wp1 = (s/M+wB1)/(s+wB1*A);
wp2 = (s/M+wB2)/(s+wB2*A);
wP = [wp1 0; 0 wp2];
wU = 1;
[K,CL,GAM,INFO] = mixsyn(G,wP,wU,[]);
any ideas?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by