- 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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have uploaded an file ,plz tell how to implement that formula
0 comentarios
Respuesta aceptada
Walter Roberson
el 7 de En. de 2012
Generally speaking, summation can be done through three standard methods:
4 comentarios
Walter Roberson
el 7 de En. de 2012
So that would appear to be external information representable as an array. In that case the above code should work.
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!