MATLAB: Summation of numbers

doit4mesummation

I have uploaded an file ,plz tell how to implement that formula

Best Answer

Generally speaking, summation can be done through three standard methods:
  • 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.