Surface normal in 3-D
11 次查看(过去 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!