Using MATLAB, calculate a sum from within a script, by adding the individual elements together

I can do the sum generally on matlab but I do not know to to add the individual elements.

2 件のコメント

Rik
Rik 2021 年 8 月 4 日
You can find guidelines for posting homework on this forum here. If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks).
Image Analyst
Image Analyst 2021 年 8 月 5 日
Not sure what "I can do the sum generally" means. Can you do it with a for loop, or with the sum() function, or both? If you can do the sum of the first 20 terms, then you are summing the individual terms, regardless of exactly how you do it. Be explicit on what you need help with.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

質問済み:

2021 年 8 月 4 日

コメント済み:

2021 年 8 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by