| 1 | edhill | 1.1 | % | 
| 2 |  |  | %  Ed Hill | 
| 3 |  |  | % | 
| 4 |  |  |  | 
| 5 |  |  | %  dd if=example_data/ETAN.0000015930.data of=t1 bs=1024 count=1 | 
| 6 |  |  | %  dd if=example_data/ETAN.0000015912.data of=t0 bs=1024 count=1 | 
| 7 |  |  | %  ./average_fields t0 t1 a01 | 
| 8 |  |  |  | 
| 9 |  |  |  | 
| 10 |  |  | %  matlab -nojvm | 
| 11 |  |  |  | 
| 12 |  |  | clear all | 
| 13 |  |  |  | 
| 14 |  |  | fid = fopen('t0') | 
| 15 |  |  | t0 = fread(fid,inf,'single',0,'ieee-be'); | 
| 16 |  |  | fclose(fid) | 
| 17 |  |  | t0(1:10) | 
| 18 |  |  |  | 
| 19 |  |  | fid = fopen('t1') | 
| 20 |  |  | t1 = fread(fid,inf,'single',0,'ieee-be'); | 
| 21 |  |  | fclose(fid) | 
| 22 |  |  | t1(1:10) | 
| 23 |  |  |  | 
| 24 |  |  | m01 = mean([t0' ; t1'])'; | 
| 25 |  |  |  | 
| 26 |  |  | [ t0(1:10)' ; t1(1:10)' ; m01(1:10)' ]' | 
| 27 |  |  |  | 
| 28 |  |  |  | 
| 29 |  |  | fid = fopen('a01') | 
| 30 |  |  | a01 = fread(fid,inf,'single',0,'ieee-be'); | 
| 31 |  |  | fclose(fid) | 
| 32 |  |  | a01(1:10) | 
| 33 |  |  |  | 
| 34 |  |  |  | 
| 35 |  |  | [ t0(1:10)' ; t1(1:10)' ; m01(1:10)' ; a01(1:10)' ]' |