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: Matlab matrix
Replies: 2   Last Post: Feb 1, 2013 5:53 PM

Advanced Search

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

Posts: 2,071
Registered: 8/5/09
Re: Matlab matrix
Posted: Feb 1, 2013 4:46 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"M" wrote in message <kehbrk$3pp$1@newscl01ah.mathworks.com>...
> How I can put time value like 10:23:34 in a matrix cell. Like below:
> a(1,2)= 10:23:34


One approach is to use a cell array and have the entry be a string. E.g.,

a = cell(1,2);
a{1,2} = '10:23:34';

James Tursa


Date Subject Author
2/1/13
Read Re: Matlab matrix
James Tursa
2/1/13
Read Re: Matlab matrix
dpb

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.