Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Help me to solve a problem please.

조회 수: 2 (최근 30일)
Mike Casanova
Mike Casanova 2014년 5월 21일
마감: MATLAB Answer Bot 2021년 8월 20일
i need to solve f(x)=e^(-x), intervals [-π<x<π] using fourier series. And need to graph it. would really appreciate the help. thanks.

답변 (1개)

Chandrasekhar
Chandrasekhar 2014년 5월 21일
cnt = 1;
for i = -pi:pi
x(cnt) = i;
f(cnt) = exp(-i);
cnt = cnt+1;
end
plot(x,f)
xlabel('pi values')
ylabel('f(x)')
grid on

Community Treasure Hunt

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

Start Hunting!

Translated by