source: altifloat/matlab_toolbox/arrange.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: 647 bytes
Line 
1function [ output_args ] = arrange_bck( )
2
3outfile='obs_float/generated_fwd.dat';
4load obs_float/r_float_obs.dat;
5[d,f]=size(r_float_obs)
6floater1=zeros(d,f);
7count1=1;
8count2=1;
9nboff=3;
10K=118*2
11for i=1:nboff*K
12    if r_float_obs(i,3)==1
13        floater(count1,:)=r_float_obs(i,:);
14        count1=count1+1;
15    end
16end
17
18for i=1:nboff*K
19    if r_float_obs(i,3)==2
20        floater(count1,:)=r_float_obs(i,:);
21        count1=count1+1;
22    end
23end
24for i=1:nboff*K
25    if r_float_obs(i,3)==3
26        floater(count1,:)=r_float_obs(i,:);
27        count1=count1+1;
28    end
29end
30
31
32
33fid=fopen(outfile,'w');
34fprintf(fid,'%d %d %d %f\n',floater');
35fclose(fid);
Note: See TracBrowser for help on using the repository browser.