Overlaying contourf plot on a geomap with coordinates

3 Ansichten (letzte 30 Tage)
mobius
mobius am 5 Mär. 2020
Kommentiert: mobius am 9 Mär. 2020
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.

Akzeptierte Antwort

KSSV
KSSV am 5 Mär. 2020
[m,n] = size(C) ;
lat = linspace(lxs,lxe,m) ;
lon = linspace(lys,lye,n)
hold on
contour(lat,lon,C)

Weitere Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by