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)
  1 件のコメント
Olga
Olga 2017 年 5 月 1 日
Thanks so much!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by