Effacer les filtres
Effacer les filtres

How do I graph a summation over an interval?

5 vues (au cours des 30 derniers jours)
Meghan
Meghan le 21 Sep 2022
Commenté : Torsten le 21 Sep 2022
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.

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by