Fourier Series`of an Even function
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Salik Mallick
el 4 de Oct. de 2020
Comentada: Star Strider
el 11 de Oct. de 2020
Why is a0 a value if pi when It shouldn't be?
%% Problem 17.5
display('Problem 17.5')
syms n t
Wo = 1;
T = 2*pi;
n = 1:10;
a0 = (1/T)*[int(-14,t,-pi,0) + int(7,t,0,pi)]
an = (2/T)*[int(-14*cos(n*Wo*t),-pi,0) + int(7*cos(n*Wo*t),0,pi)]
bn = (2/T)*[int(-14*sin(n*Wo*t),-pi,0) + int(7*sin(n*Wo*t),0,pi)]
3 comentarios
Star Strider
el 11 de Oct. de 2020
See also an apparent duplicate: Fourier Series of Rectified Cosine Function
Respuesta aceptada
Utkarsh Belwal
el 8 de Oct. de 2020
Editada: Utkarsh Belwal
el 8 de Oct. de 2020
Hello Salik,
You are right, there should be no pi in the DC coefficient and the value should be 3.5. According to me as a0 is a symbolic variable so it has the pi symbol included in it for better precision. I calculated the value of a0 that MATLAB is displaying, and it is coming 3.5. If you want to use the numeric value, then you can do a symbolic to numeric conversion as follows:
A0_numeric = double(a0);
DISCLAIMER: These are my own views and in no way depict those of MathWorks.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!