Está en la página 1de 3

Representacin Grfica de la Serie de Fourier

Apellidos y nombres: Samam Jimnez, Hilda Ana Cdigo: 10140138 Las series de Fourier se utilizan para descomponer una funcin, seal u onda peridica como suma infinita o finita de funciones, seales u ondas armnicas o sinusoidales, es decir, una serie de Fourier es un tipo de serie trigonomtrica. Sea la funcin peridica:

( )
Representar grficamente su Serie de Fourier con 4 trminos.

( )

))}

( )

* Cdigo:
% Representacin Grfica de la SF close A = 1; w = pi; tao = 2; t = linspace(0,tao); % 0 <= t <= tao figure(1) %Trmino constante subplot(2,2,1) plot(t, (A/pi)*(pi/2),'*r'); grid on legend('x(t) = (A/pi)*(pi/2)') title('Grfica de SF - C','FontName','Century Gothic','FontSize',12) xlabel('t','FontName','Century Gothic','FontSize',10) ylabel('x','FontName','Century Gothic','FontSize',10) subplot(2,2,2) %Un Trmino plot(t, A*t/tao,'og'); grid on legend('x(t) = A*t/tao') title('Grfica de SF - 1 trminos','FontName','Century Gothic','FontSize',12) xlabel('t','FontName','Century Gothic','FontSize',10) ylabel('x','FontName','Century Gothic','FontSize',10) subplot(2,2,3) %Dos Trminos plot(t, (A/pi)*((pi/2)-sin(w*t)),'+b'); grid on legend('x(t) = A/pi)*((pi/2)-sin(w*t))') title('Grfica de SF - 2 trminos','FontName','Century Gothic','FontSize',12)

xlabel('t','FontName','Century Gothic','FontSize',10) ylabel('x','FontName','Century Gothic','FontSize',10) subplot(2,2,4) %Tres Trminos plot(t, (A/pi)*((pi/2)-sin(w*t)+0.5*sin(2*w*t)),'oc'); grid on legend('x(t) = (A/pi)*((pi/2)-sin(w*t)+0.5*sin(2*w*t))') title('Grfica de SF - 3 trminos','FontName','Century Gothic','FontSize',12) xlabel('t','FontName','Century Gothic','FontSize',10) ylabel('x','FontName','Century Gothic','FontSize',10)

figure(2) %Cuatro Trminos plot(t, (A/pi)*((pi/2)-sin(w*t)+0.5*sin(2*w*t)+(1/3)*(sin(3*w*t))),'*'); grid on legend('x(t) = (A/pi)*((pi/2)-sin(w*t)+0.5*sin(2*w*t)+(1/3)*(sin(3*w*t)))') title('Grfica de SF - 4 trminos','FontName','Century Gothic','FontSize',12) xlabel('t','FontName','Century Gothic','FontSize',10) ylabel('x','FontName','Century Gothic','FontSize',10)

* Ejecucin:

Figura 1. En cada grfica se muestra la representacin grfica de Fourier con cierta cantidad de trminos descrita en el ttulo de cada una de ellas.

Figura 2. Representacin grfica de la ecuacin 1; es decir con todos sus trminos.

También podría gustarte