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

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

[Octave-bug-tracker] [bug #60963] default inconsistencies with matlab wi


From: Rik
Subject: [Octave-bug-tracker] [bug #60963] default inconsistencies with matlab with 'grid' and 'hold'
Date: Fri, 23 Jul 2021 17:30:09 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36

Follow-up Comment #5, bug #60963 (project octave):


sys = tf([0 1],[1 1 100]);
figure(1),step(sys), grid


Try `help grid`.  When `grid` is given alone as a command it toggles the grid
from "on" to "off" or from "off" to "on".

By default, the `step` function turns the grid on so your next command to grid
turns it back off.  Apparently Matlab takes the opposite approach and the
`step` function there does not turn the grid on so your next command actually
shows the grid.  If you want to turn the grid on, rather than toggle it, then
use the syntax


grid ('on');


This will make the code work regardless of whether you are running it in
Octave or Matlab.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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