How to convert this to the filled 2-D contour plot?
1 次查看(过去 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.
FYI: What I meant here as the filled 2-D contour plot
Any comments will be welcomed. Thank you in advance.
0 个评论
采纳的回答
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 ;
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!