How do I make a contour of 3-dimensional data?

I have 3-dimensional data of temperature (Temperature(:,:,:)), where the rows express the latitude, and the columns express the longitude (I may have swapped but you get the point), and each layer is representing the depth. How do I make a 3d contour plot? I cant seem to do contour3(Temperature). Thanks, Pietro

Answers (1)

Indeed, contour3 only works on 2D matrices, but plots contours in 3D space. What you want to do will require some manual tinkering. You could calculate an isosurface then plot it in 3D space with contour3.

Categories

Asked:

on 13 May 2016

Answered:

on 13 May 2016

Community Treasure Hunt

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

Start Hunting!