function [ right, left ] = hrtf_dateilesen( filename ) %hrtf_dateilesen Read .dat-Files from HRTF-Measurments % Optimized version of dateilesen3() - approx. 37x speed up! numberofrecordings = 5; fid = fopen(filename,'r'); filecontent = fread(fid,Inf,'short'); fclose(fid); filelength = length(filecontent); right = reshape(filecontent(1:filelength/2), 5, filelength/2/numberofrecordings); left = reshape(filecontent(filelength/2+1:end), 5, filelength/2/numberofrecordings); end