clear[filename, pathname] = uigetfile('*.raw;*.prc', 'Pick raw or processed data file');N=str2double(filename(5:6)); % load processed file
fid = fopen([pathname filename],'r','b'); A= fread(fid,inf,'*single')'; prcdata=reshape(A,N,[])'; plot(prcdata) end title(strrep(filename,'_','-')) fclose(fid); %%|
I also tried the following steps
prcdata=reshape(A,N,[])/(1.16*10^6);
Best Answer