how to divide a column vector by a scalar?

84 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by