# Serie de fourier en matlab

Solo disponible en BuenasTareas
• Páginas : 3 (507 palabras )
• Descarga(s) : 44
• Publicado : 18 de julio de 2010

Vista previa del texto
DESARROLLO

f(t)= t

f(t)= -1 T/2 w=2*pi/T;

>> t=-4:0.001:4;

>> f1=4/pi*(sin(w*t)+1/3*sin(3*w*t)+1/5*sin(5*w*t));

>>f2=4/pi*(sin(w*t)+1/3*sin(3*w*t)+1/5*sin(5*w*t)+1/7*sin(7*w*t)+1/9*sin(9*w*t)+1/11*sin(11*w*t)+1/13*sin(13*w*t)+1/15*sin(15*w*t)+1/17*sin(17*w*t)+1/19*sin(19*w*t)+1/21*sin(21*w*t)+1/23*sin(23*w*t));

>>f3=4/pi*(sin(w*t)+1/3*sin(3*w*t)+1/5*sin(5*w*t)+1/7*sin(7*w*t)+1/9*sin(9*w*t)+1/11*sin(11*w*t)+1/13*sin(13*w*t)+1/15*sin(15*w*t)+1/17*sin(17*w*t)+1/19*sin(19*w*t)+1/21*sin(21*w*t)+1/23*sin(23*w*t)+1/25*sin(25*w*t)+1/27*sin(27*w*t)+1/29*sin(29*w*t)+1/31*sin(31*w*t));

>> +1/33*sin(33*w*t)+1/35*sin(35*w*t)+1/37*sin(37*w*t)+1/39*sin(39*w*t)+1/41*sin(41*w*t)

hold on;

>>

>> plot(t,f1,'g');

>> plot(t,f2,'b');

>> plot(t,f3,'c');

>> holdoff;

>> grid on;

[pic]

[pic]

INSTITITO TECNOLOGICO DE MORELIA

“GRAFICA EN MATLAB DE SERIE DE UNA FOURIER”