format of matrices

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

format of matrices

Zoltán Prohászka
Dear support team!

I am studiing help format on octave 4.0.2
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?

Thanks


Kind Regards / Mit freundlichen Grüßen / Szívélyes üdvözlettel
Dr. Zoltán Prohászka
Computer Vision Expert
ADV DEV / Automated Driving


T: +36 (1) 873 6052, F: +36 (1) 505 9101, zoltan.prohaszka@...
thyssenkrupp Presta Hungary Kft., Daróczi Str. 1-3., H-1113 Budapest, Hungary,
www.thyssenkrupp-presta.hu



Registered office: Budapest, Commercial register: Budapest, 01-09-887088, VAT No.: HU14061716
Management Board: Marc de Bastos Eckstein

Wir entwickeln die Zukunft für Sie. / Developing the future.
Besuchen Sie uns im Internet! / Visit us on the internet!
<
www.thyssenkrupp.com>

Wie Sie wissen, können über das Internet versandte E-Mails unter fremdem Namen erstellt oder der Inhalt verändert werden. Aus diesem Grund sind unsere als E-Mail verschickten Nachrichten grundsätzlich keine rechtsverbindlichen Erklärungen. Der Inhalt dieser E-Mail samt Anlagen ist vertraulich und u. U. rechtlich geschützt. Der Inhalt ist ausschließlich an einen bestimmten Empfänger gerichtet. Eine Weitergabe, die Herstellung von Kopien oder der sonstige Gebrauch durch Nichtadressaten ist nicht erlaubt. Ich bitte daher jeden anderen Empfänger, der diese E-Mail versehentlich erhält, mich umgehend zu informieren und die Nachricht zu löschen.

As you are aware, messages sent by e-mail can be manipulated by third parties. For this reason our e-mail messages are generally not legally binding. This electronic message (including any attachments) contains confidential information and may be privileged or otherwise protected from disclosure. The information is intended to be for the use of the intended addressee only. Please be aware that any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this e-mail in error please notify me immediately by reply e-mail and delete this message and any attachments from your system. Thank you for your cooperation.

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: format of matrices

NJank


On Fri, Nov 3, 2017 at 7:54 AM, Zoltán Prohászka <[hidden email]> wrote:
Dear support team!

I am studiing help format on octave 4.0.2
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?

Thanks


Can you provide an example of what you would like to see?

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: format of matrices

Przemek Klosowski-7
In reply to this post by Zoltán Prohászka
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


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: format of matrices

Ozzy Lash
In reply to this post by NJank


On Fri, Nov 3, 2017 at 9:38 AM, Nicholas Jankowski <[hidden email]> wrote:


On Fri, Nov 3, 2017 at 7:54 AM, Zoltán Prohászka <[hidden email]> wrote:
Dear support team!

I am studiing help format on octave 4.0.2
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?

Thanks


Can you provide an example of what you would like to see?


Just guessing from the description, but do you want to used "fixed_point_format"  where a scaling factor is printed out before the matrix and all the values are multiplied by the scaling factor?  See: https://octave.sourceforge.io/octave/function/fixed_point_format.html

Bill

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave