Code covered by the BSD License
19 Mar 2012
This program developed to record AI signals like EEG or EMG. Almost NI Card was supported.
function data = daq2mat(fname)
[data, time] = daqread(fname);
tmp = sortrows([time, data]);
nanT = find(isnan(tmp)==1, 1, 'first');
data = tmp(1:nanT-1,:);