plot3 not functioning
2 views (last 30 days)
Show older comments
clear all
close all
clc
X=[1 10];
Y=[0 20];
Z=[0 15];
plot3(X,Y,Z)
grid on
for this simple programme or any other programme, plot3 is not working.
0 Comments
Answers (1)
Star Strider
on 31 Mar 2021
Please define what ‘not working’ means. Does it throw an error? If so, copy all the red text from the Command Window to a Comment to your original Question.
In the interim, you could have your own ‘plot3’ funciton or variable that is confusing MATLAB.
To determine that, run this:
which plot3 -all
from the Command Window or a script.
The only result should be:
built-in (C:\Program Files\MATLAB\R2021a\toolbox\matlab\graph3d\plot3)
or something similar. If there are othe results, that points to the problem, and the solution is to re-name the others.
0 Comments
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!