Plot an earth map behind a contour plot

I have a contour plot where my x-axis[0-144], and my y-axis[0:72]. I would like to have the contour lines of earth map behind my figure on the same set of axis. Thanks for help!

Antworten (1)

Walter Roberson
Walter Roberson am 20 Jul. 2012

0 Stimmen

This can be done with the Mapping Toolbox and contourm()

4 Kommentare

Yassine
Yassine am 20 Jul. 2012
But my matrix size 72X144, and the contour map they provide in matlab help is at size 180X360, so they cannot fit in the same figure.
Walter Roberson
Walter Roberson am 20 Jul. 2012
The map you are overlaying does not need to have the same granularity as the contour matrix. The lat and lon that you pass into contourm() will indicate where on the map your data relates to.
Yassine
Yassine am 20 Jul. 2012
can you give me an example please?
contourm(lat, lon, Z)
where lat and lon have data that only happens to span a subset of the lat and lon range for whatever map you are using.

Melden Sie sich an, um zu kommentieren.

Produkte

Gefragt:

am 20 Jul. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by