Mercurial > hg > aimc
diff matlab/AIMCread.m @ 157:ce97ae23c66b
- Added support for a very basic AIM-C file format
author | tomwalters@google.com |
---|---|
date | Thu, 27 May 2010 07:25:03 +0000 |
parents | f03d4455b262 |
children | 988c8b6f7946 |
line wrap: on
line diff
--- a/matlab/AIMCread.m Thu Jan 13 18:58:15 2011 +0000 +++ b/matlab/AIMCread.m Thu May 27 07:25:03 2010 +0000 @@ -12,10 +12,10 @@ debug = 0; -nFrames = fread( fid, 1, 'uint32'); +nFrames = fread( fid, 1, 'int32'); period = fread( fid, 1, 'float32'); % Frame period in ms -nChannels = fread( fid, 1, 'uint32'); % vertical axis of an AI -nSamples = fread( fid, 1, 'uint32'); % horizontal axis of an AI +nChannels = fread( fid, 1, 'int32'); % vertical axis of an AI +nSamples = fread( fid, 1, 'int32'); % horizontal axis of an AI sample_rate = fread(fid, 1, 'float32'); % sample rate of each channel in Hz if nChannels == 1 % temporal profiles