MATLAB: How to create cross-section from 3d dimensional surface

dimensional surfacesintersection

I transported the simulated surface's data as three (20×20) matrices X,Y,Z. So, I have a 3D plot that's generated by 3 (20×20) matrices X,Y,Z. I want to plot the YZ curve (cross section) at specified X. Moreover, the dimension of surface is really important to me, and I do not want to miss my surface feature or profile by interpolation?

Best Answer

You define your required x values and the respective y values, use interpolation (interp2).
Read about interp2 .
Related Question