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.
How can I write a series function?
4 次查看(过去 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 个)
另请参阅
类别
在 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!