Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Combining series of matrices
Replies: 10   Last Post: Jan 26, 2013 10:05 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
dpb

Posts: 7,867
Registered: 6/7/07
Re: Combining series of matrices
Posted: Jan 21, 2013 5:12 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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...

--




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.