size of surfnorm vectors
1 次查看(过去 30 天)
显示 更早的评论
how can I introduce a max length to the vectors plotted by surfnorm or at least scale them?, I cant finde the rigth documentation to do it, thanks.
3 个评论
Walter Roberson
2016-11-7
The vectors produced by surfnorm are not normalized. That is, they are not unit vectors, do not generally have length 1.
采纳的回答
Walter Roberson
2016-11-7
With normalizing:
[nx, ny, nz] = surfnorm(x, y, z);
L = sqrt(nx.^2 + ny.^2 + nz.^2);
quiver3( x, y, z, nx./L, ny./L, nz./L )
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Vector Fields 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!