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

3 次查看(过去 30 天)
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:

采纳的回答

Fangjun Jiang
Fangjun Jiang 2021-12-6
A=1:100;
A(1:5)=A(1:5)*3

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by