Scientific notation problem
Yunfei Ding
yfding at gmail.com
Wed Apr 30 01:24:16 CDT 2008
If I have a matrix:
A=[0,1e3,0;1e-9,0,0]
Octave gives:
A =
0.0000e+000 1.0000e+003 0.0000e+000
1.0000e-009 0.0000e+000 0.0000e+000
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?
Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080429/d7384df5/attachment.html
More information about the Help-octave
mailing list