필터 지우기
필터 지우기

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 CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by