Re: Matlab help for a beginner!
check out how to use dlmread or csvread.
if you format the start and end times in a file as follows
starttime1, endtime1
starttime2, endtime2
...
and so on.
times = csvread('timefile.csv');
will put the times into a 2-column matrix called 'times'.
Then, if you say times(1,: ), you'll get starttime1 endtime1. If you write these times as indicies to 'timefile.csv', then you can just do the following
indicies = times(1,1):times(1,2);
group = longdataset(indicies);
then you can loop through if you want:
PHP Code:
times = csvread('timefile.csv');
for i=1:length(times)
indicies = times(i,1):times(i,2);
group = hugedata(indicies);
%do stuff with group
end