Multiply a column by a number

Más respuestas (1)

Roger Stafford
Roger Stafford el 30 de Mzo. de 2018

0 votos

Let Ar be the name of the array.
Ar(:,6) = 4*Ar(:,6);
What could be simpler? Since 4 is a scalar, it is automatically applied to each element of that column.

Categorías

Preguntada:

el 30 de Mzo. de 2018

Respondida:

el 30 de Mzo. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by