Scientific notation problem
Francesco Cat
heartcollector87 at gmail.com
Wed Apr 30 03:39:33 CDT 2008
2008/4/30 Yunfei Ding <yfding at gmail.com>:
> 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
More information about the Help-octave
mailing list