How can I find the surface normal of a 8 by 3 matrix?

조회 수: 1 (최근 30일)
Henry Canova
Henry Canova 2019년 11월 20일
답변: darova 2019년 11월 20일
I am attempting to find the surface normal of a 8 by 3 matrix in matlab. The matrix is
x = [0,228.6,-228.6,0,-114.3,114.3,114.3,-114.3];
y = [514.35,285.75,285.75,57.15,101.6,101.6,400.05,400.05];
z = [1873,1873,1909,1903,1909,1887,1869,1895];

답변 (1개)

darova
darova 2019년 11월 20일
  • Use griddata to create a surface
  • Use surfnorm to find normal vectors
[nx,ny,nz] = surfnorm(x,y,z);
surf(x,y,z)
hold on
quiver3(x,y,z,nx,ny,nz)
hold off

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by