source: altifloat/matlab_toolbox/altifloat3.m @ 160

Last change on this file since 160 was 129, checked in by jbrlod, 10 years ago

last version of Varanth

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1% 2floaters each one 2 pts
2ls
3load obs_float_test.dat
4whos;
5X=obs_float_test (:,:)
6[m,n]=size(X)
7x1=obs_float_test (1:2:m/2,4)
8y1=obs_float_test (2:2:m/2,4)
9x1=x1+1;
10y1=y1+1;
11plot(x1(1),y1(1),'+')
12hold on
13plot(x1(4),y1(4),'>')
14hold on
15plot(x1(1:4),y1(1:4),'-r')
16hold on
17x2=obs_float_test (m/2+1:2:m,4)
18y2=obs_float_test (m/2+2:2:m,4)
19x2=x2+1;
20y2=y2+1;
21plot(x2(1),y2(1),'+')
22hold on
23plot(x2(4),y2(4),'>')
24hold on
25plot(x2(1:4),y2(1:4),'-b')
26hold on
27load r_float_optim25float-filtre15-inc_16.dat;
28whos;
29r_float_optim25float_filtre15_inc_16(1:end,:)
30x3=r_float_optim25float_filtre15_inc_16(1:4:16,4)
31y3=r_float_optim25float_filtre15_inc_16(3:4:16,4)
32x3=x3+1;
33y3=y3+1;
34plot(x3(1),y3(1),'+')
35hold on
36plot(x3(4),y3(4),'>')
37hold on
38plot(x3(1:4),y3(1:4),'-g')
39hold on
40x4=r_float_optim25float_filtre15_inc_16(2:4:16,4)
41y4=r_float_optim25float_filtre15_inc_16(4:4:16,4)
42x4=x4+1;
43y4=y4+1;
44plot(x4(1),y4(1),'+')
45hold on
46plot(x4(4),y4(4),'>')
47hold on
48plot(x4(1:4),y4(1:4),'-y')
49hold on
50ls;
51load uoptim25float-filtre15-inc16.dat;
52whos;
53X=uoptim25float_filtre15_inc16(:,end-2);
54Y=uoptim25float_filtre15_inc16(:,end-1);
55U=uoptim25float_filtre15_inc16(:,end);
56ls;
57load voptim25float-filtre15-inc16.dat;
58whos;
59V=voptim25float_filtre15_inc16(:,end);
60quiver(X,Y,U,V,'k');
Note: See TracBrowser for help on using the repository browser.