Is there a contourc equivalent for contourm?

1 view (last 30 days)
Mark Debord
Mark Debord on 10 Mar 2022
Edited: Mark Debord on 10 Mar 2022
I would like to compute contours on geotiffs without producing a plot. For regular rectangluar data 'contour' will compute the contours and plot them, and 'contourc' function will just compute the contours and return the contour matrix without plotting. It appears the geographic contour function 'contourm' works like 'contour' and produces a plot, I would like to get the contours without generating a plot.
Right now my solution is this:
altContour = contourm(geoData,geoRef,'LevelList',geoAltitude,'Visible','off');
But this is still incurring overhead penalties for setting up the figure... I would ideally like a function like 'contourmc'. Is there some function, even internal or undocumented, that I can use to achieve this?

Answers (0)


Find more on Contour Plots 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!