[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55570] quiver3 gives error for 3 inputs
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #55570] quiver3 gives error for 3 inputs |
Date: |
Fri, 25 Jan 2019 15:39:32 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 |
Follow-up Comment #2, bug #55570 (project octave):
I don't think the 3-argument form is Matlab compatible, however, after looking
at https://www.mathworks.com/help/matlab/ref/quiver3.html.
The Octave documentation seems like it is simply describing the interface
incorrectly. There is no 3-argument form, and the 6-argument form requires
x,y,z to have the same dimensions as u,v,w, so they cannot be the output of a
3-nargout call to meshgrid.
There is a 4-argument form that is not documented in Octave's doc string at
all, where X and Y are implied and Z defines the surface on which the vector
field is plotted.
So going back to the example in Octave's doc string, this should not be
expected to work:
[x, y, z] = peaks (25);
[u, v, w] = surfnorm (x, y, z / 10);
quiver3 (u, v, w);
But this *should* work, and currently fails in Octave:
quiver3 (z, u, v, w);
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55570>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/