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

1 visualización (últimos 30 días)
x=[1 2 3];
y=[1 2 3 4];
[X,Y]=meshgrid(x,y);
Z=Y;
plot3(X,Y,Z)

Respuesta aceptada

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

Más respuestas (0)

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by