Create unit vector for every vector in 3d array

2 vues (au cours des 30 derniers jours)
Dominick
Dominick le 24 Mar 2023
Réponse apportée : Matt J le 24 Mar 2023
I have 3x1x541 array, and I would like to turn each 3x1 in the array into a unit vector. What would be the quickest way to do this?

Réponse acceptée

Matt J
Matt J le 24 Mar 2023
normalize(yourArray,1,'n')

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays 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!

Translated by