-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathactual_build_lmi25_jianbo.m
51 lines (35 loc) · 994 Bytes
/
actual_build_lmi25_jianbo.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
% Build LMI 25 on page 712
% Eduardo Mendes - 07/26/2017
% DELT - UFMG
% It uses the xk, uk and rk as in the previous lmi
%% Build LMI 25 - First Part
biglmi25=[];
for i=1:M
for n=1:N
% Evaluation of matrix auxm25 which is symbolic
for j1=1:size(auxm25,1) % 2 rows
for j2=1:size(auxm25,2) % 2 columns
m25{j1,j2}=eval(auxm25{j1,j2});
end
end
% Transform cell matrix m25 to a LMI
auxlmi25=[];
for j1=1:size(auxm25,1) % 2
s='[';
for j2=1:size(auxm25,2) % 2
s=sprintf('%s m25{%d,%d}',s,j1,j2);
end
s=sprintf('%s];',s);
auxlmi25=[auxlmi25;eval(s)];
end
biglmi25=[biglmi25;auxlmi25>=0];
end
end
%% Build LMI 25 - Second Part
auxlmi25_1=[];
for i=1:M
for n=1:N
auxlmi25_1=[auxlmi25_1;eval(auxm25_1)];
end
end
biglmi25_1 = auxlmi25_1;