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

3 次查看(过去 30 天)
x=[1 2 3];
y=[1 2 3 4];
[X,Y]=meshgrid(x,y);
Z=Y;
plot3(X,Y,Z)

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by