how to use sum?
Mostrar comentarios más antiguos
I am trying to use sum but with no success!
For example:
n=1:20;
sum(n./2.^n)
or:
n=20;
k=1:n;
sum(k);
but neither works!Am I missing sth here?
Thanks!
1 comentario
Jan
el 18 de Feb. de 2013
"Neither works" is not a good description of the problem. Better post the error message of explain the difference between the results and your expectations.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Exploration and Visualization en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!