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

3 views (last 30 days)
x=[1 2 3];
y=[1 2 3 4];
[X,Y]=meshgrid(x,y);
Z=Y;
plot3(X,Y,Z)

Accepted Answer

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

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!