How do I graph a summation over an interval?

I have to plot this on the interval x E [-1,1] and x E [-0.1,0.1] for N=10. Can anyone help? I've tried symsum, but it doesn't work.

 Respuesta aceptada

n=(0:10).';
fcn=@(x)sum( (2/3).^n .* cos(9.^n.*(pi.*x)) );
fplot(fcn,[-1,1]/10)

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Productos

Versión

R2022a

Preguntada:

el 21 de Sept. de 2022

Comentada:

el 21 de Sept. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by