Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to dates and other information to appear nice?

Subject: How to dates and other information to appear nice?

From: Laurentiu Galan

Date: 3 Dec, 2010 17:45:28

Message: 1 of 2

Hey guys,

I concatenated a date matrix, and two price matrices.
Unfortunately when I run the matrix, it appears as:
matrix=
1.0e+005 *

    7.3195 0.0003 0.0005
    7.3195 0.0003 0.0005
    7.3195 0.0003 0.0005
    7.3195 0.0003 0.0005
    7.3195 0.0003 0.0005
    7.3196 0.0003 0.0005
    7.3196 0.0003 0.0005
    7.3196 0.0003 0.0005
    7.3196 0.0003 0.0005
    7.3196 0.0003 0.0005

How do I get rid of the weird format on the date matrix
so i only have the serial date first one is 731950, the price in column 2 is 34.98 and the price in column three is 52.9, how do i make it appear as so?
I want to get rid of the 1.0e+0.005*
and display the numbers as they really are.

Subject: How to dates and other information to appear nice?

From: Steven_Lord

Date: 3 Dec, 2010 18:11:45

Message: 2 of 2



"Laurentiu Galan" <larryg003@yahoo.com> wrote in message
news:idbabo$r7c$1@fred.mathworks.com...
> Hey guys,
>
> I concatenated a date matrix, and two price matrices.
> Unfortunately when I run the matrix, it appears as:
> matrix=
> 1.0e+005 *
>
> 7.3195 0.0003 0.0005

Use the FORMAT function to change the way matrices are displayed.

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlab.wikia.com/wiki/FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us