help-octave
[Top][All Lists]
Advanced

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

Re: How can I increase or decrise the lenth os scaling !


From: John W. Eaton
Subject: Re: How can I increase or decrise the lenth os scaling !
Date: Fri, 29 Nov 2002 14:29:34 -0600

On 29-Nov-2002, Mike Miller <address@hidden> wrote:

| I know that JWE and others are very busy, but I wonder what you all think
| of the following idea:
| 
| format n.m
| 
| where n,m are integers.  m expresses the *exact* number of digits to be
| displayed to the right of the decimal point and n expresses the *maximum*
| number of digits to the left.

Have you looked at the variables output_max_field_width and
output_precision?

I know they don't allow you to specify precisely the number of digits
to the left and right of the decimal point, but they do allow better
control than just format short/long.

My reason for specifying precision rather than just a number of digits
left and right of the decimal point was so that the small values in a
matrix with a wide range of values would not be printed as zeros.  For
example, Matlab will do things like this:

  >>   [1; 0.00001234]

  ans =

      1.0000
      0.0000


and I wanted to avoid that.

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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