Hi guys, I'm having trouble trying to put this summation: top of ∑ is N bottom of ∑ is j=1 side of ∑ is j^p For p=1,2,3 and N=6 how do i solve this using matlab? i keep getting error messages.

1 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 5 日
Where are your code and the error message?

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

 採用された回答

cr
cr 2013 年 10 月 5 日

0 投票

sum((1:6).^p)
use various values of p and you get the result.

1 件のコメント

Amanda Kit Ting
Amanda Kit Ting 2013 年 10 月 5 日
thx for your help. i thought you will need more complex code for this question. Cause this is my first time using Matlab to calculate problems. i appreciate it.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by