help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scientific notation problem


From: Francesco Cat
Subject: Re: Scientific notation problem
Date: Wed, 30 Apr 2008 10:39:33 +0200

2008/4/30 Yunfei Ding <address@hidden>:
> However if I have a matrix:
>
> A=[0,1e0,0;1e-9,0,0]
>
> Octave gives:
>
> A =
>
>    0.00000   1.00000   0.00000
>    0.00000   0.00000   0.00000
>
> So I lose the data 1e-9 in the second row. It seems like Octave decides what
> to do according to the first row of the data. How can I force it to use
> scientific notation all the time?

you can use the "format" command;
you probably want to use "format short e", but also read the "help
format" for lots of interesting informations :)

Francesco


reply via email to

[Prev in Thread] Current Thread [Next in Thread]