how to divide a column vector by a scalar?

84 vues (au cours des 30 derniers jours)
Brian Dowling
Brian Dowling le 15 Mar 2019
Réponse apportée : KSSV le 15 Mar 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

Réponse acceptée

KSSV
KSSV le 15 Mar 2019
A = rand(54,1) ;
scalar = rand ;
iwant = A/scalar ;

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by