dpb
Posts:
9,850
Registered:
6/7/07
|
|
Re: Combining series of matrices
Posted:
Jan 21, 2013 5:12 PM
|
|
On 1/20/2013 11:30 AM, Ehsan wrote: > "james bejon" wrote in message <kdh908$g0c$1@newscl01ah.mathworks.com>... >> If you supply some code that generates the relevant data structure, >> I'll happily have a go... > ...
Lum.data=[]; Rad.data=[]; while date<=end_date filename=sprintf('SS%s.csv',datestr(date,'yymmdd')); d=importdata(filename,',',9); nr=size(d.data(:,2)); time=zeros(nr,1); time=datenum(d.textdata(10:nr+9,2),'HH:MM:ss'); time=date+time-735235; d.data=[datevec(time),d.data]; L=d.data(1:2:end,:); R=d.data(2:2:end,:); index1=find(L{ind}.data(:,1)==0); L(L(:,1)==0)=[]; R(R(:,1)==0)=[]; date=date+1; Lum.data=[Lum.data;L]; Rad.data=[Rad.data;R]; end
Salt to suit...
--
|
|