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!