How to plot using symsum

22 vues (au cours des 30 derniers jours)
Olga
Olga le 30 Avr 2017
Commenté : Olga le 1 Mai 2017
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!

Réponse acceptée

KSSV
KSSV le 1 Mai 2017
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 commentaire
Olga
Olga le 1 Mai 2017
Thanks so much!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by