Extract a profile from 3D data

15 vues (au cours des 30 derniers jours)
ConanTaieb
ConanTaieb le 29 Sep 2021
Commenté : ConanTaieb le 29 Sep 2021
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!

Réponse acceptée

KSSV
KSSV le 29 Sep 2021
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 commentaire
ConanTaieb
ConanTaieb le 29 Sep 2021
Thank you KSSV

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by