how to divide a column vector by a scalar?

84 visualizaciones (últimos 30 días)
Brian Dowling
Brian Dowling el 15 de Mzo. de 2019
Respondida: KSSV el 15 de Mzo. de 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

Respuesta aceptada

KSSV
KSSV el 15 de Mzo. de 2019
A = rand(54,1) ;
scalar = rand ;
iwant = A/scalar ;

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by