Overlaying contourf plot on a geomap with coordinates
3 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have the following code:
figure
%C is a 2D matrix with some data
%lxs = start of latitude, lxe = end of latitude
%lys = start of longitude, lys = start of longitude
geoshow([lxs lxe],[lys lye],C,'DisplayType','texturemap')
I am a newbie in Matlab and I have the following problem:
I want to overlay the contourf of matrix C onto a geomap with coordinates, is my code wrong or is there another way to do this?
Cheers.
0 个评论
采纳的回答
KSSV
2020-3-5
[m,n] = size(C) ;
lat = linspace(lxs,lxe,m) ;
lon = linspace(lys,lye,n)
hold on
contour(lat,lon,C)
更多回答(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!