Create unit vector for every vector in 3d array

15 visualizaciones (últimos 30 días)
Dominick
Dominick el 24 de Mzo. de 2023
Respondida: Matt J el 24 de Mzo. de 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?

Respuesta aceptada

Matt J
Matt J el 24 de Mzo. de 2023
normalize(yourArray,1,'n')

Más respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by