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

3 visualizzazioni (ultimi 30 giorni)
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:

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by