-
Notifications
You must be signed in to change notification settings - Fork 1
/
loop_editor.m
23 lines (22 loc) · 879 Bytes
/
loop_editor.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%example
for n1=1:N1
for n2=1:N2
qq(n1,n2)= -(y(n1)+z(n2))*h(n2,n1);
for n3=1:N3
for n4=1:N4
if n1~=n2*n3 && n3>n4^3
x(n1,n2,n3,n4)= (y(n1,n3)+z(n4))*h(n2,n3,n1);
q(n4,n3,n2,n1)= -h(n2,n3,n1)+((y(n1,n3)+z(n4))*h(n2,n3,n1))^2;
end
x(n1,n2,n3,n4)= (y(n1,n3)+z(n4))*h(n2,n3,n1);
q(n4,n3,n2,n1)= -h(n2,n3,n1)+((y(n1,n3)+z(n4))*h(n2,n3,n1))^2;
if n1~=n2*n3 && n3>n4^3
x(n1,n2,n3,n4)<= (y(n1,n3)+z(n4))*h(n2,n3,n1);
q(n4,n3,n2,n1)>= -h(n2,n3,n1)+((y(n1,n3)+z(n4))*h(n2,n3,n1))^2;
end
x(n1,n2,n3,n4)= (y(n1,n3)+z(n4))*h(n2,n3,n1);
q(n4,n3,n2,n1)= -h(n2,n3,n1)+((y(n1,n3)+z(n4))*h(n2,n3,n1))^2;
end
end
end
end