Create unit vector for every vector in 3d array

9 次查看(过去 30 天)
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?

采纳的回答

Matt J
Matt J 2023-3-24
normalize(yourArray,1,'n')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by