How can I write a series function?
5 ビュー (過去 30 日間)
古いコメントを表示
Write a function that gives sum of the series given by
Sn=550+2+3+6+11+...+(n^2-2*n+3)
for different values of n.
0 件のコメント
回答 (1 件)
Geoff Hayes
2019 年 2 月 17 日
Alaska - this seems like a homework question. Presumably n starts at one and then goes to what exactly? If you know the upper bound then you could either use a for loop or you could use vectorization to determine an answer.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Time Series Events についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!