Is there an equivalent for contourc in the mapping toolbox?
Show older comments
I have two georeferenced 2D fields (lat,lon,F1,F2). I want to plot them into the same axis, one of them with
axesm('MapProjection','stereo', ...)
pcolorm(lat,lon,F1)
and from the other one only a single contourline with
contourm(lat,lon,F2,[2 2]).
Of course this doesn't work since both fields have different physical meanings/units.
In a X/Y coordinate system I could use the low level function contourc (without plot)
C = contourc(x,y,F2)
with gives me the x/y coordinates of the contour lines. So I would be able to plot the contourlines into the same axis with the line function.
However, there is no function contourcm .
I could plot F2 in a second figure using
C = contourm(lat,lon,pv',[2 2];
to get the coordinates (lat/lon) of the contourline and then plot this line using linem.
Is it somehow possible to plot both fields into one axis in the way described above, and avoid a second (contourline) plot?
Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Mapping Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!