source: altifloat/matlab_toolbox/make_true.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: 493 bytes
Line 
1outfile='../obs_float/vel_true_all.dat';
2
3ufile='../obs_float/utrue.dat';
4vfile='../obs_float/vtrue.dat';
5fid=fopen(outfile,'w');
6for i=1:19
7   
8time_step=i;
9
10ubck=load(ufile);
11vbck=load(vfile);
12
13%Check if coordinates are the sames
14delta=ubck(:,2:3)-vbck(:,2:3);
15
16 
17  vel_bck=zeros(size(ubck,1),5);
18 vel_bck(:,1)=time_step;
19 vel_bck(:,2)=ubck(:,2);
20 vel_bck(:,3)=ubck(:,3);
21 vel_bck(:,4)=ubck(:,4);
22 vel_bck(:,5)=vbck(:,4);
23
24 
25 fprintf(fid,'%d %d %d %f %f\n',vel_bck');
26
27 
28
29end
30
31fclose(fid);
Note: See TracBrowser for help on using the repository browser.