how to divide a column vector by a scalar?

107 ビュー (過去 30 日間)
Brian Dowling
Brian Dowling 2019 年 3 月 15 日
回答済み: KSSV 2019 年 3 月 15 日
I have a column vector (54x1) and i need to divide all of them by the same scalar. I have tried the right array divider ./ but its not working for me. Any help appreciated

採用された回答

KSSV
KSSV 2019 年 3 月 15 日
A = rand(54,1) ;
scalar = rand ;
iwant = A/scalar ;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by