
% open the raw data file
%
fp = fopen('710_b_8k.raw','r');

% read in the raw data (16-bit int)
%
[raw,count] = fread(fp,8,'int16');
[raw2,count2] = fread(fp,8,'int16');

% close the raw data file
%
fclose(fp);


fp2 = fopen('test2.raw','a');

for i = 1:count
   temp=raw(i); 
   fwrite(fp2,temp,'int16');
end