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

5 ビュー (過去 30 日間)
Alexander Black
Alexander Black 2021 年 12 月 6 日
回答済み: Fangjun Jiang 2021 年 12 月 6 日
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 Center および File ExchangeMatrices and Arrays についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by