How to plot using symsum

23 visualizaciones (últimos 30 días)
Olga
Olga el 30 de Abr. de 2017
Comentada: Olga el 1 de Mayo de 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!

Respuesta aceptada

KSSV
KSSV el 1 de Mayo de 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)

Más respuestas (0)

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by