On 11/03/2017 07:54 AM, Zoltán
Prohászka wrote:
I would like to have all matrix
elements
printed out with same exponent. I am used to it, and when I need
it, it
is really useful.
How can I achieve that a matrix
is scaled
to a common exponent, and elements are listed accorning to that
exponent?
I am not sure I understand what you want to accomplish but if you
want to pull out a common exponent out, you can do this:
a =
5.0718e+14 2.8201e+14 1.9826e+14
2.8201e+14 1.5681e+14 1.1024e+14
1.9826e+14 1.1024e+14 7.7501e+13
octave:17> fixed_point_format(1)
octave:19> a
a =
1.0e+14 *
5.07177 2.82007 1.98260
2.82007 1.56805 1.10239
1.98260 1.10239 0.77501
|