Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Help me to solve a problem please.

3 visualizzazioni (ultimi 30 giorni)
Mike Casanova
Mike Casanova il 21 Mag 2014
Chiuso: MATLAB Answer Bot il 20 Ago 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.

Risposte (1)

Chandrasekhar
Chandrasekhar il 21 Mag 2014
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

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by