how to use sum?
이전 댓글 표시
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
Jan
2013년 2월 18일
"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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Exploration and Visualization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!