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

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,

 Respuesta aceptada

Preguntada:

el 29 de Jul. de 2019

Respondida:

el 1 de Ag. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by