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

4 Ansichten (letzte 30 Tage)
Alexander Black
Alexander Black am 6 Dez. 2021
Beantwortet: Fangjun Jiang am 6 Dez. 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:

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 6 Dez. 2021
A=1:100;
A(1:5)=A(1:5)*3

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by