Create unit vector for every vector in 3d array

7 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by