help-octave
[Top][All Lists]
Advanced

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

Re: format of matrices


From: Przemek Klosowski
Subject: Re: format of matrices
Date: Fri, 3 Nov 2017 10:43:42 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

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


reply via email to

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