Clear Filters
Clear Filters


This question is closed. Reopen it to edit or answer.

Help me to solve a problem please.

3 views (last 30 days)
Mike Casanova
Mike Casanova on 21 May 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
i need to solve f(x)=e^(-x), intervals [-π<x<π] using fourier series. And need to graph it. would really appreciate the help. thanks.

Answers (1)

Chandrasekhar on 21 May 2014
cnt = 1;
for i = -pi:pi
x(cnt) = i;
f(cnt) = exp(-i);
cnt = cnt+1;
xlabel('pi values')
grid on

Community Treasure Hunt

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

Start Hunting!