size of surfnorm vectors
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
lorenzo donadio
le 6 Nov 2016
Commenté : lorenzo donadio
le 8 Nov 2016
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 commentaires
Walter Roberson
le 7 Nov 2016
The vectors produced by surfnorm are not normalized. That is, they are not unit vectors, do not generally have length 1.
Réponse acceptée
Walter Roberson
le 7 Nov 2016
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 )
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Vector Fields dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!