Mercurial > hg > aimc
diff matlab/AIMCread.m @ 603:087f3b3c36d3
Add option to dump strobes
author | tomwalters@google.com |
---|---|
date | Tue, 07 May 2013 14:24:33 +0000 |
parents | 988c8b6f7946 |
children |
line wrap: on
line diff
--- a/matlab/AIMCread.m Fri Apr 19 00:26:23 2013 +0000 +++ b/matlab/AIMCread.m Tue May 07 14:24:33 2013 +0000 @@ -1,15 +1,22 @@ -function [data, nFrames, period, nChannels, nSamples, sample_rate] = AIMCread(filename) +function [data, nFrames, period, nChannels, nSamples, sample_rate] = ... + AIMCread(filename, strobes_filename) %[data, nFrames, period, nChannels, nSamples ] = AIMCread( filename) % % data ... matrix (or array) of size [nFrames,nChannels,nSamples] % in case vertical/horizontal profiles are read, you should use squeeze % nFrames ... number of frames % period ... Frame interval in ms -% nChannels ... points on vertical axis of an auditori image -% nSamples ... points on horizontal axis of an auditori image +% nChannels ... points on vertical axis of an auditory image +% nSamples ... points on horizontal axis of an auditory image fid = fopen(filename); +strobes_fid = -1; +if nargin > 1 + strobes_fid = fopen(strobes_filename); + strobes_raw = fread(strobes_fid, [], 'int32'); +end + debug = 0; nFrames = fread( fid, 1, 'uint32');