Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Aoi Midori
Aoi Midori le 29 Mai 2019
Commenté : Aoi Midori le 30 Mai 2019
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.

Réponse acceptée

KSSV
KSSV le 29 Mai 2019
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 commentaire
Aoi Midori
Aoi Midori le 30 Mai 2019
Thank you! That is exactly what I've wanted to get.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by