Symsum undefined function error
조회 수: 3 (최근 30일)
이전 댓글 표시
I am trying to plot an equation with an infinite series using symsum.
I get this error when I try to plot it.
>> plot(x,.9-symsum((2./(n*3.14159)).*(sin(.1*n*3.14159))*(exp(-(n.^2)*(3.14159.^2)*x)),n,1,Inf));
Undefined function 'symsum' for input arguments of type 'double'.
Based on previous questions I thought it might be a problem of having the toolbox but that is in the right directory. Maybe I can't use symsum with my argument type, but is there another function I can use? Sum also didn't work (I got: Error using sum Dimension argument must be a positive integer scalar within indexing range.)
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!