Info

此问题已关闭。 请重新打开它进行编辑或回答。

Help me to solve a problem please.

1 次查看(过去 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