write a script to find the sum of an array of numbers of the form 2n-10, n = 1,2,…, 10.

1 回表示 (過去 30 日間)
DONHILL ADIMA
DONHILL ADIMA 2021 年 6 月 22 日
回答済み: Dhruv G 2021 年 6 月 22 日
Using the programming language and Matlab syntax, write a script to find the sum of an array of numbers of the form 2n-10, n = 1,2,…, 10.
  3 件のコメント
DONHILL ADIMA
DONHILL ADIMA 2021 年 6 月 22 日
I have no attempt now, but i have previous work

サインインしてコメントする。

回答 (1 件)

Dhruv G
Dhruv G 2021 年 6 月 22 日
Think about how the ':' is used when defining an array within parantheses or in square brackets. Think about how multiplying an array with a scalar works, and look at how the sum() function in matlab works.

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by