function study_rap(name) %function study_rap(name,sno,fno) % studying the RAP file from ICSI NN's % looking for not-a-numbers, infinites and similar stuff ! disp ('-------------------'); END_OF_SENTENCE =-1; ff=fopen(name,'r','b'); % big endian files perframe = fread(ff,1,'int'); sent=0; frame=0; while (~feof(ff)) sentid = fread(ff,1,'int'); if (sentid == END_OF_SENTENCE) frame = 0; sent=sent+1; %disp(sent); continue; end % ok, read the data and analyze x = fread(ff,[1 perframe],'float'); if (find(isnan(x))) disp ([name ' ' num2str(sent) ' ' num2str(frame)]); end % print the things desired % if (sent == sno & frame == fno) % x % end frame = frame +1; end fclose (ff);