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
| if get(handles.config_3SR,'value')==1
for x=1:361
temp1_1(1,1:x)=D(91,363-x:362);
temp1_1(1,x:361)=D(91,2:363-x);
temp1_2(x,1:361)=temp1_1;
end;
for x=30:150
temp(x-29,1:361)=temp1_2(x,1:361);
plot(temp);
M(x-29)=getframe;
end;
movie(M,100,30);
elseif get(handles.config_4SR,'value')==1
for x=1:361
temp1_1(1,1:x)=D1(91,363-x:362);
temp1_1(1,x:361)=D1(91,2:363-x);
temp1_2(x,1:361)=temp1_1
end;
for x=45:135
temp(x-44,1:361)=temp1_2(x,1:361);
plot(temp);
M(x-44)=getframe;
end;
movie(M,100,30);
end; |
Partager