How do I graph a summation over an interval?

5 ビュー (過去 30 日間)
Meghan
Meghan 2022 年 9 月 21 日
コメント済み: Torsten 2022 年 9 月 21 日
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.

採用された回答

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by