Create unit vector for every vector in 3d array

2 ビュー (過去 30 日間)
Dominick
Dominick 2023 年 3 月 24 日
回答済み: Matt J 2023 年 3 月 24 日
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 Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by