- 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!