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: Creating a time series plot for multiple days?
Replies: 1   Last Post: Jul 15, 2013 10:48 AM

Advanced Search

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

Posts: 1,923
Registered: 12/6/04
Re: Creating a time series plot for multiple days?
Posted: Jul 15, 2013 10:48 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Benson" wrote in message <ks109j$gb0$1@newscl01ah.mathworks.com>...
> So normally, I would do something like this:
> yValue = [1 2 3 4 5];
> time = [8.5 10 10.20 13.4 15.2]; (8.5 = 8:30:00)
> plot(time, yValue);
>
> However, this restricts me to only one full day between 0:00:00 and 24:00:00. What if I wanted to include multiple days in one graph? So time = ['6/10/2013 8.5', '6/10/2013 10', '6/10/2013 15.2', '6/11/2013 4.5', '6/12/2013 15.6']
>
> Thanks!


% Perhaps these will be of some help

doc datenum
doc datevec
doc datestr
doc juliandate % require Aerosoace Toolbox

% Also, take a look at:

<<http://www.mathworks.com/help/matlab/matlab_prog/represent-date-and-times-in-MATLAB.html>>



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.