I want to draw a mesh surface. But when I use that code to draw it, YZ line is disappeared...

3 vues (au cours des 30 derniers jours)
x=[1 2 3];
y=[1 2 3 4];
[X,Y]=meshgrid(x,y);
Z=Y;
plot3(X,Y,Z)

Réponse acceptée

KSSV
KSSV le 21 Mai 2023
x=[1 2 3];
y=[1 2 3 4];
[X,Y]=meshgrid(x,y);
Z=Y;
surf(X,Y,Z)

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by