Error ! All rows in the bracketed expression must have the same number of columns.

조회 수: 5 (최근 30일)
I am using yalmip to write an LMI in matlab but its giving an error kindlay help if anyone know the solution. My code is like this
clc;
A1=[-1.1 0.4;-0.2 1.1];
A2=[-0.2 0.7;0.6 1.3];
B1=[0;1.2];
B2=[0;1.3];
Bw1=[0;0.12];
Bw2=[0;0.9];
G1=[1;0];
G2=[1;0];
ohm=0.7;
yalmip('clear')
Q= sdpvar(2,2,'symmetric');
del=sdpvar(1,1,'full');
U=sdpvar(2,2,'full');
Y11= sdpvar(1,2);
Y21= sdpvar(1,1);
LMI1 = blkvar();
LMI1(1,1)=-Q;
LMI1(1,2)=A1*U+B1*Y11;
LMI1(1,3)=G1*del+B1*Y21;
LMI1(1,4)=Bw1;
LMI1(2,2)=Q-U-U';
LMI1(2,3)=U'*ohm;
LMI1(2,4)= 0;
LMI1(3,3)=-2*del;
LMI1(3,4)=0;
LMI1(4,4)=-eye(2);
error==>> lmi1= sdpvar(LMI1);
  댓글 수: 1
Johan Löfberg
Johan Löfberg 2015년 4월 16일
BTW, YALMIP questions are much better asked on the YALMIP forum
https://groups.google.com/forum/?fromgroups=#!forum/yalmip

댓글을 달려면 로그인하십시오.

채택된 답변

Johan Löfberg
Johan Löfberg 2015년 4월 16일
Your blocks makes no sense. The (1,4) block is 2x1, but the (4,4) is 2x2, hence inconsistent width.
  댓글 수: 1
Ahmad Sheikh
Ahmad Sheikh 2015년 4월 16일
yeah john you are right actually i am bit worried how they defined this LMI in this paper ...
Control of Nonlinear Discrete-time Systems Subject to Energy Bounded Disturbances Using Local T-S Fuzzy Models
i-e equation (18)....I think there is some mistake or error they have done...!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Robust Control Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by