Surface normal in 3-D

8 ビュー (過去 30 日間)
Erdem Aktürk
Erdem Aktürk 2023 年 1 月 14 日
回答済み: Chris 2023 年 2 月 24 日
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);

回答 (2 件)

Star Strider
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.)

Chris
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

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by