help-octave
[Top][All Lists]
Advanced

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

Re: Simultaneous "compact", "short e" and "output_precision(2)"


From: Mike Miller
Subject: Re: Simultaneous "compact", "short e" and "output_precision(2)"
Date: Tue, 20 Aug 2013 12:16:08 -0400

On Tue, Aug 20, 2013 at 15:40:11 +0000, Paul wrote:
> None of the 3 examples of code in my original post simultaneously
> activates "format compact", "format short e" and "output_precision(2)".

Correct, but I believe the example I posted in response does, though,
does it not do what you expect?

  > format % reset all formatting to defaults
  > format short e % precision is now 5, compact appears to be off
  > format compact
  > output_precision (2)
  > x = rand (5)
  x =
   5.2e-01   4.4e-01   8.0e-02   2.2e-01   8.5e-01
   7.2e-01   9.1e-01   2.8e-01   8.7e-01   6.2e-01
   5.0e-01   9.9e-01   8.4e-01   9.5e-01   5.2e-01
   9.5e-01   3.2e-01   8.1e-02   2.5e-02   8.7e-01
   4.8e-01   1.9e-01   9.4e-01   2.3e-01   8.3e-01

> The exact circumstances and statement ordering giving rise to which
> combination of effects is a black box from my point of view.

I think the ordering and effects between "format short", "format
long", and "output_precision" are fairly clear in the documentation.
The one that I agree may be a bit unclear is attempting to combine
those with "format compact" as above.

-- 
mike


reply via email to

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