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