1788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgfunction [x, t] = readPCM(file, fs) 2788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org%[x, t] = readPCM(file, fs) 3788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org% 4788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org%Reads a signal from a PCM file. 5788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org% 6788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org%x: The read signal after normalization. 7788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org%t: The respective time vector. 8788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org% 9788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org%file: The PCM file where the signal is stored in int16 format. 10788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.org%fs: The signal sample rate in Hertz. 11788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgfid = fopen(file); 12788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgx = fread(fid, inf, 'int16'); 13788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgfclose(fid); 14788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgx = x - mean(x); 15788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgx = x / max(abs(x)); 16788acd17adf6b3d605b5ea66cf394eb81fc086a9pbos@webrtc.orgt = 0:(1 / fs):((length(x) - 1) / fs); 17