source: altifloat/matlab_toolbox/arrange_format.m @ 199

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

last version of Varanth

File size: 490 bytes
Line 
1function [ output_args ] = arrange_format( nboffloaters, totaltimesteps )
2
3outfile='../obs_float/obs_float_test.dat';
4load ../obs_float/r_float_obs.dat;
5[d,f]=size(r_float_obs)
6floater1=zeros(d,f);
7count1=1;
8count2=1;
9nboff=nboffloaters;
10K=totaltimesteps*2
11
12for j=1:nboffloaters
13for i=1:nboff*K
14    if r_float_obs(i,3)==j
15        floater(count1,:)=r_float_obs(i,:);
16        count1=count1+1;
17    end
18end
19end
20
21
22fid=fopen(outfile,'w');
23fprintf(fid,'%d %d %d %f\n',floater');
24fclose(fid);
25end
26
Note: See TracBrowser for help on using the repository browser.