How to create cross-section from 3d dimensional surface?

15 次查看(过去 30 天)
I transported the simulated surface's data as three (20x20) matrices X,Y,Z. So, I have a 3D plot that's generated by 3 (20x20) 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?

采纳的回答

KSSV
KSSV 2017-1-31
编辑:KSSV 2017-1-31
You define your required x values and the respective y values, use interpolation (interp2).
Read about interp2 .
  12 个评论
Hassan Khoshzaban
Hassan Khoshzaban 2017-2-11
Hi I tried this code for my whole surface (23x110 matrix). It showed the misconsistency because of different degree of linearity. Is it possible to increase accuracy with using mesh grid between elements. I attach the image to show you problem. Thanks

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by