How do I multiply the first 50 values of an array?

3 visualizaciones (últimos 30 días)
Alexander Black
Alexander Black el 6 de Dic. de 2021
Respondida: Fangjun Jiang el 6 de Dic. de 2021
I'm supposed to multiply the first 50 values of an array containing 1200 values by 3. How do I do this?
This is what my array looks like:

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 6 de Dic. de 2021
A=1:100;
A(1:5)=A(1:5)*3

Más respuestas (0)

Categorías

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

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by