Extract a profile from 3D data

13 ビュー (過去 30 日間)
ConanTaieb
ConanTaieb 2021 年 9 月 29 日
コメント済み: ConanTaieb 2021 年 9 月 29 日
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 日
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) ;
  1 件のコメント
ConanTaieb
ConanTaieb 2021 年 9 月 29 日
Thank you KSSV

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by