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 07:56:13 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Aug 20, 2013 at 01:45:01 +0000, Paul wrote:
> I have the following script.  I want format to be compact, to use short 
> scientific exponent, and to have a precision of 1 decimal place.  The 
> following is compact, but uses fixed point for u.

Try setting compact after short e:

  format short e
  format compact
  output_precision (2)

I think this gives the format you want.

> Is this proper behaviour for format & output_precision?  Is it possible to 
> get short scientific exponent and output_precision?

Was there a problem with output_precision that I didn't get from your
examples, or was it only how to combine compact with scientific
notation?

HTH,

-- 
mike


reply via email to

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