How to plot using symsum

조회 수: 22 (최근 30일)
Olga
Olga 2017년 4월 30일
댓글: Olga 2017년 5월 1일
I was wondering how you correctly plot using the function symsum. I was thinking the following but nothing shows up on the graph:
syms x
W = symsum(x/2,x,0,2)
plot(W)
Any suggestions would be most appreciated!

채택된 답변

KSSV
KSSV 2017년 5월 1일
syms x
k = 1:200 ;
W = zeros(size(k)) ;
for i = 1:length(k)
W(i) = symsum(x/2,x,0,k(i)) ;
end
plot(k,W)
  댓글 수: 1
Olga
Olga 2017년 5월 1일
Thanks so much!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by