How to convert this to the filled 2-D contour plot?

조회 수: 1 (최근 30일)
Aoi Midori
Aoi Midori 2019년 5월 29일
댓글: Aoi Midori 2019년 5월 30일
I would like to convert the figure below to the one like the filled 2-D contour plot, but don't know how.
This figure is created by:
scatter(X, Y, 500, Z,'filled');
I have attached the data (variables) I used, as well.
2-D Scatter.PNG
FYI: What I meant here as the filled 2-D contour plot
Any comments will be welcomed. Thank you in advance.

채택된 답변

KSSV
KSSV 2019년 5월 29일
load dataset.mat
m = 100 ; n = 100 ;
x = linspace(min(X),max(X),m) ;
y = linspace(min(Y),max(Y),n) ;
[Xi,Yi] = meshgrid(x,y) ;
Zi = griddata(X,Y,Z,Xi,Yi) ;
pcolor(Xi,Yi,Zi)
shading interp ;
  댓글 수: 1
Aoi Midori
Aoi Midori 2019년 5월 30일
Thank you! That is exactly what I've wanted to get.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by