How to plot using symsum

23 次查看(过去 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)

更多回答(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