Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Help me to solve a problem please.

2 visualizaciones (últimos 30 días)
Mike Casanova
Mike Casanova el 21 de Mayo de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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.

Respuestas (1)

Chandrasekhar
Chandrasekhar el 21 de Mayo de 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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by