octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #62417] Function form of 'format' undocumented


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #62417] Function form of 'format' undocumented and errors on format names with spaces
Date: Mon, 9 May 2022 13:22:43 -0400 (EDT)

Follow-up Comment #6, bug #62417 (project octave):

correct, matlab errors on format('short e'):


>> format shorte
>> format short e
>> format('short','e')
>> format('short e')
Error using format
Invalid format option short e.

except for the latter, the above all make the same format change to:


a = format

a = 

  DisplayFormatOptions with properties:

    NumericFormat: "shortE"
      LineSpacing: "loose"


so, all their documentation list as single words, but they accept two-word
format states except for the function call.

All of Octave's documentation list the format states as two words. There is no
mention of a 'shorte' option, just 'short e'.  Since Short and E are separate
format specifiers, this does make some sense, and needing to send them to the
function form as two separate strings makes sense in that context.  

Maybe then this is primarily a documentation problem. 


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62417>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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