[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/
- [Octave-bug-tracker] [bug #60963] default inconsistencies with matlab with 'grid' and 'hold', sylvain bougnoux, 2021/07/23
- [Octave-bug-tracker] [bug #60963] default inconsistencies with matlab with 'grid' and 'hold', John W. Eaton, 2021/07/23
- [Octave-bug-tracker] [bug #60963] default inconsistencies with matlab with 'grid' and 'hold', sylvain bougnoux, 2021/07/23
- [Octave-bug-tracker] [bug #60963] default inconsistencies with matlab with 'grid' and 'hold', sylvain bougnoux, 2021/07/23
- [Octave-bug-tracker] [bug #60963] default inconsistencies with matlab with 'grid' and 'hold', sylvain bougnoux, 2021/07/23
- [Octave-bug-tracker] [bug #60963] default inconsistencies with matlab with 'grid' and 'hold',
Rik <=
- [Octave-bug-tracker] [bug #60963] [package control] Matlab Compatibility for step() and axes "grid" property, sgrid() and axes "box" property, Rik, 2021/07/23
- [Octave-bug-tracker] [bug #60963] [octave forge] (control) Matlab Compatibility for step() and axes "grid" property, sgrid() and axes "box" property, Kai Torben Ohlhus, 2021/07/24
- [Octave-bug-tracker] [bug #60963] [octave forge] (control) Matlab Compatibility for step() and axes "grid" property, sgrid() and axes "box" property, sylvain bougnoux, 2021/07/26