How to plot meshgrid without successive intervals

Antworten (1)

KSSV
KSSV am 25 Aug. 2020
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 Kommentare

radha s
radha s am 26 Aug. 2020
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)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 25 Aug. 2020

Kommentiert:

am 26 Aug. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by