plot3 not functioning

2 visualizaciones (últimos 30 días)
ARNAB MODAK
ARNAB MODAK el 31 de Mzo. de 2021
Respondida: Star Strider el 31 de Mzo. de 2021
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.

Respuestas (1)

Star Strider
Star Strider el 31 de Mzo. de 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.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by