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

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

[Octave-bug-tracker] [bug #49794] display vs. disp functions


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #49794] display vs. disp functions
Date: Sat, 17 Dec 2016 15:34:57 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #20, bug #49794 (project octave):

Rik:  What version of Matlab was used to run the test?  Maybe the behavior has
changed?  For 2016a, it looks like display always prints the header line
(variable name or "ans") and disp does not.


>> version

ans =

9.0.0.341360 (R2016a)

>> x = pi / 4

x =

    0.7854

>> disp (x)
    0.7854

>> disp (sin (x))
    0.7071

>> disp (0.7071)
    0.7071

>> display (x)

x =

    0.7854

>> display (sin (x))

ans =

    0.7071

>> display (0.7071)

ans =

    0.7071




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49794>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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