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

조회 수: 15 (최근 30일)
Hassan Khoshzaban
Hassan Khoshzaban 2017년 1월 31일
댓글: Hassan Khoshzaban 2017년 2월 11일
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
Hassan Khoshzaban
Hassan Khoshzaban 2017년 2월 11일
I attach matrixes to make it sence.

댓글을 달려면 로그인하십시오.

추가 답변 (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