From: Sal on
Hello,
I was wondering if someone could advise me on this issue (not a big one)..
Basically, I have different arrays (including one that stores dates, in the format 'ddmmyy') containing data (in form of numbers). If I access, these different arrays separately, the numbers are displayed in the format they were initially stored in.
However, when i try to to display different arrays together, matlab displays the result in a scientific form...e.g.

[store_y(1:200),date_stored_y(1:200), location_y(1:200)]

ans =

1.0e+05 *

-0.0000 0.5019 0.0110
-0.0001 0.6019 0.0110
-0.0002 0.7019 0.0110
-0.0003 0.8019 0.0110
-0.0004 0.9019 0.0110
-0.0005 1.0019 0.0110
-0.0006 1.1019 0.0110
-0.0007 1.2019 0.0110
-0.0008 1.3019 0.0110
-0.0009 1.4019 0.0110
-0.0009 1.5019 0.0110

Its really hard to compare the data in this form, especially reading the dates can be a pain (e.g. in the first row, second column, the date is supposed to be 5th january 1990, but the unit zero of 90 is left out)

Is there a way that i can prevent maltab from displaying results in scientific/index form and (force it) to display the numbers in their actual format.. i tried typing format long (& short) but that only changed the number of decimals and did not remove the index form. Any help/advise would be really appreciated.

Thank you

Salman
From: us on
"Sal " <salman.hafeez(a)mail.mcgill.ca> wrote in message <i2l4eq$fls$1(a)fred.mathworks.com>...
> Hello,
> I was wondering if someone could advise me on this issue (not a big one)..
> Basically, I have different arrays (including one that stores dates, in the format 'ddmmyy') containing data (in form of numbers). If I access, these different arrays separately, the numbers are displayed in the format they were initially stored in.
> However, when i try to to display different arrays together, matlab displays the result in a scientific form...e.g.
>
> [store_y(1:200),date_stored_y(1:200), location_y(1:200)]
>
> ans =
>
> 1.0e+05 *
>
> -0.0000 0.5019 0.0110
> -0.0001 0.6019 0.0110
> -0.0002 0.7019 0.0110
> -0.0003 0.8019 0.0110
> -0.0004 0.9019 0.0110
> -0.0005 1.0019 0.0110
> -0.0006 1.1019 0.0110
> -0.0007 1.2019 0.0110
> -0.0008 1.3019 0.0110
> -0.0009 1.4019 0.0110
> -0.0009 1.5019 0.0110
>
> Its really hard to compare the data in this form, especially reading the dates can be a pain (e.g. in the first row, second column, the date is supposed to be 5th january 1990, but the unit zero of 90 is left out)
>
> Is there a way that i can prevent maltab from displaying results in scientific/index form and (force it) to display the numbers in their actual format.. i tried typing format long (& short) but that only changed the number of decimals and did not remove the index form. Any help/advise would be really appreciated.
>
> Thank you
>
> Salman

a hint:

help format;

us
From: dpb on
Sal wrote:
....
> However, when i try to to display different arrays together, matlab
> displays the result in a scientific form...e.g.
>
> [store_y(1:200),date_stored_y(1:200), location_y(1:200)]
>
> ans =
>
> 1.0e+05 *
>
> -0.0000 0.5019 0.0110
....

> Is there a way that i can prevent maltab from displaying results in
> scientific/index form and (force it) to display the numbers in their
> actual format.. i tried typing format long (& short) but that only
> changed the number of decimals and did not remove the index form. Any
> help/advise would be really appreciated.

Try

format short|long g

--