source: altifloat/matlab_toolbox/twinexp2floaters.m @ 199

Last change on this file since 199 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% 1 floater 2 pts
2ls
3load obs_float_test.dat
4x1=obs_float_test (1:2:40,4)
5y1=obs_float_test (2:2:40,4)
6x1=x1+1;
7y1=y1+1;
8plot(x1(1),y1(1),'+')
9hold on
10plot(x1(20),y1(20),'>')
11hold on
12plot(x1(1:20),y1(1:20),'-r')
13hold on
14x2=obs_float_test (41:2:80,4)
15y2=obs_float_test (42:2:80,4)
16x2=x2+1;
17y2=y2+1;
18plot(x2(1),y2(1),'+')
19hold on
20plot(x2(20),y2(20),'>')
21hold on
22plot(x2(1:20),y2(1:20),'-r')
23hold on
24load rfloat_total.dat;
25whos;
26rfloat_total(:,:)
27x3=rfloat_total(1:20,4)
28y3=rfloat_total(1:20,3)
29x3=x3+1;
30y3=y3+1;
31plot(x3(2),y3(2),'+')
32hold on
33plot(x3(19),y3(19),'>')
34hold on
35plot(x3(2:19),y3(2:19),'-g')
36hold on
37x4=rfloat_total(21:40,4)
38y4=rfloat_total(21:40,3)
39x4=x4+1;
40y4=y4+1;
41plot(x4(2),y4(2),'+')
42hold on
43plot(x4(19),y4(19),'>')
44hold on
45plot(x4(2:19),y4(2:19),'-g')
46hold on
47ls;
48
49
50load uv_total.dat
51X=uv_total(:,end-3);
52Y=uv_total(:,end-2);
53X=X+1;
54Y=Y+1;
55U=uv_total(:,end-1);
56V=uv_total(:,end);
57quiver(X,Y,U,V,'r');
58
59load vel_bck_all.dat;
60whos;
61X=vel_bck_all(:,end-3);
62Y=vel_bck_all(:,end-2);
63U=vel_bck_all(:,end-1);
64V=vel_bck_all(:,end);
65quiver(X,Y,U,V,'b');
66
67load vel_next_all.dat;
68whos;
69X=vel_next_all(:,end-3);
70Y=vel_next_all(:,end-2);
71U=vel_next_all(:,end-1);
72V=vel_next_all(:,end);
73quiver(X,Y,U,V,'g');
74
Note: See TracBrowser for help on using the repository browser.