how to divide a column vector by a scalar?

86 Ansichten (letzte 30 Tage)
Brian Dowling
Brian Dowling am 15 Mär. 2019
Beantwortet: KSSV am 15 Mär. 2019
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

Akzeptierte Antwort

KSSV
KSSV am 15 Mär. 2019
A = rand(54,1) ;
scalar = rand ;
iwant = A/scalar ;

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by