How to draw unit normal vector?

조회 수: 10 (최근 30일)
Dinh Le Dung
Dinh Le Dung 2022년 8월 30일
댓글: Torsten 2022년 8월 30일
I have done all , except for the part plot unit normal vector.
Could you help we solving it, thanks a lot <3
  댓글 수: 1
Torsten
Torsten 2022년 8월 30일
quiver3(x0,y0,z0,x0*(1+1/norm([x0,y0,z0])),y0*(1+1/norm([x0,y0,z0])),z0*(1+1/norm([x0,y0,z0])))

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

답변 (2개)

Matt J
Matt J 2022년 8월 30일
편집: Matt J 2022년 8월 30일
Does the normal vector have to look like an arrow? If not, then with [nx,ny,nz] as the unit normal, you could do,
line([x0,x0+nx], ...
[y0,y0+ny],
[y0,y0+nz])

Matt J
Matt J 2022년 8월 30일
편집: Matt J 2022년 8월 30일
Once you've plotted the sphere and plane, then with [nx,ny,nz] as the unit normal,
hold on
quiver3(x0,y0,z0, nx,ny,nz);
hold off

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by