How to plot meshgrid without successive intervals

回答(1 个)

X=[1,1.5,2,2.5,3] ;
Y=[0.8351,0.8265,0.7569,0.6348,0.5219] ;
[X,Y] = meshgrid(X,Y) ;
plot(X,Y,'r',X',Y','r')

2 个评论

I need mesh or surf figure for this data set.
Already X, Y is a mesh.
X=[1,1.5,2,2.5,3] ;
Y=[0.8351,0.8265,0.7569,0.6348,0.5219] ;
[X,Y] = meshgrid(X,Y) ;
Z = sqrt(X.^2+Y.^2) ;
figure
surf(X,Y,Z)
figure
mesh(X,Y)

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 2-D and 3-D Plots 的更多信息

提问:

2020-8-25

评论:

2020-8-26

Community Treasure Hunt

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

Start Hunting!

Translated by