Hello,
How can we extract a 2d profile from a surface?
Input: point cloud N * 3 (X, Y, Z).
Output: profile (X, Z) for constant Y for example
Thank you!

 채택된 답변

KSSV
KSSV 2021년 9월 29일

0 개 추천

If data is structured:
x = X(1,:) ;
y = Y(1,:) ; % give your required row value depending on y-value
z = interp2(X,Y,Z,x,y) ;
If data is scattered:
F = scatteredInterpolant(X,Y,Z) ;
% define your required (x,y)
z = F(x,y) ;

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

질문:

2021년 9월 29일

댓글:

2021년 9월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by