[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65984] plot3 cant plot when x and y dimension
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #65984] plot3 cant plot when x and y dimensions are not the same |
Date: |
Sat, 13 Jul 2024 04:13:59 -0400 (EDT) |
Follow-up Comment #2, bug #65984 (group octave):
% the z matrices are still formatted wrong by this webpage, i try % again
x = linspace(-10, 10, 3);
y = linspace(-10, 10, 3);
z=[0 0 0; 0 1 0; 0 0 0];
plot3(x,y,z, '.', 'MarkerSize', 20);%works
figure
x = linspace(-10, 10, 4);
y = linspace(-10, 10, 3);
z=[0 0 0 0; 0 1 0 0; 0 0 0 0];
plot3(y,x,z, '.', 'MarkerSize', 20);
%this gives:
%error: plot3: X, Y, and Z must have the same shape
%plot3(x,y,z, '.', 'MarkerSize', 20);
%this gives:
%error: plot3: [length(X), length(Y)] must match size (Z)
%this works:
%mesh(x, y, z, "facecolor", "none");
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65984>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature