- initializing the result to 0, and looping over all of the possibilities, adding each term to the result
- using sum()
- using symsum() if you have access to the symbolic toolbox. This should be used only for formula and not for specific numeric values.
summation of numbers
2 次查看(过去 30 天)
显示 更早的评论
I have uploaded an file ,plz tell how to implement that formula
0 个评论
采纳的回答
Walter Roberson
2012-1-7
Generally speaking, summation can be done through three standard methods:
4 个评论
Walter Roberson
2012-1-7
So that would appear to be external information representable as an array. In that case the above code should work.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!