Surface normal in 3-D
조회 수: 12 (최근 30일)
이전 댓글 표시
How can I show the normal of surfaces in3-D plotting?
I use symbolic equations.
surface=str2sym(input("surface equation:","s"));
surface_EQ=symfun(surface,[x,y,z])
s=fimplicit3(surface_EQ,"FaceAlpha",0.6);
댓글 수: 0
답변 (2개)
Star Strider
2023년 1월 14일
Although I doubt this would work with with symbolic plots without some additional coding, the surfnorm function would be worth exploring. (I have never worked with it with symbolic plots.)
댓글 수: 0
Chris
2023년 2월 24일
I haven't tested it since it seems to need a more recent version of MATLAB, but there's a tutorial here: https://au.mathworks.com/help/symbolic/find-tangent-plane-and-normal-line.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!