MATLAB: How to get a slice plot from a 3d surface plot for a particular Z value

3d plotsslice plotsurface plot

Dear experts,
I am intended to plot a three dimensional surface plot from a data file where data are arranged like x, y, z. Then I plot the data in MATLAB using surf(X,Y,Z). Now I want to plot a slice of the surface parallel to the X,Y plane for a particular value of Z parameter. If I see the MATLAB userguide on slice plot it requires some extra volume paramater with some formula. I would like to request if you kindly suggest me how can I get one slice of the 3d surface plot for a specific value of Z parallel to the X,Y plane.
Thanking you,

Best Answer

I will be happy if you try contour()
Related Question