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: need a column in hour:minute format
Replies: 4   Last Post: Sep 28, 2012 9:22 AM

Advanced Search

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

Posts: 34
Registered: 8/16/12
Re: need a column in hour:minute format
Posted: Sep 28, 2012 6:39 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Barry Williams" <barry.r.williamsnospam@saic.com> wrote in message <k43u1r$5lh$1@newscl01ah.mathworks.com>...
> "Moon Datta" wrote in message <k43gmc$m2m$1@newscl01ah.mathworks.com>...
> > I have a double column in second
> > like
> > 60
> > 120
> > 180
> > 240
> > 300
> > ....
> > ....
> > ....
> > I want to take them in hour.
> > I have divided them by 86400.
> > but
> > I am getting some numbers, whether I need it in
> > 00:00
> > 00:01
> > 00:02
> > 00:03
> > ......
> > ......
> > ......
> >
> > in this format.
> >
> >
> > help please....
> >
> >
> > thanks in advance

>
> timestr = datestr(V, 'HH:MM');
>
> Barry


thank you Sir

but it is in cell, I need in a double.



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.