Matlab Serie de Fourier

8

Transcript of Matlab Serie de Fourier

Page 1: Matlab Serie de Fourier
Page 2: Matlab Serie de Fourier

SEÑAL POLAR DE PULSOS RECTANGULARESPor su importancia en la transmisión de información en comunicaciones y lo extenso de su aplicación se estudiará esta señal:

g ttt

( )

1 01 2

En el intervalo

la señal g(t) está dada por:

0 2 t

Page 3: Matlab Serie de Fourier

SERIE DE FOURIER CON MATLAB• % el primer armónico o frecuencia fundamental de la señal cuadrada en azul• t=0:.1:10• y=4*sin(t)/pi;• plot(t,y)• hold on• %el segundo armonico en verde • y=(4/pi)*[sin(3*t)/3];• hold on • plot(t,y,'g')• %el tercer armonico en ++++• y=(4/pi)*[sin(5*t)/5];• hold on • plot(t,y,'+')• %la resultante en rojo,al sumar las armonicas, de la señal cuadrada.• %siga sumando hasta 10 armonicos y observe que la resultante que se aparece mas• %a la señal cuadrada• y=(4/pi)*[sin(t)+sin(3*t)/3+sin(5*t)/5];• plot(t,y,'r')

Page 4: Matlab Serie de Fourier
Page 5: Matlab Serie de Fourier

0 1 2 3 4 5 6 7 8 9 10-1.5

-1

-0.5

0

0.5

1

1.5

Page 6: Matlab Serie de Fourier

• y=(4/pi)*[sin(7*t)/7];• hold on • plot(t,y,'x')• • y=(4/pi)*[sin(9*t)/9];• hold on• plot(t,y,'y')• • y=(4/pi)*[sin(11*t)/11];• hold on• plot(t,y,'b')• • y=(4/pi)*[sin(13*t)/13];• hold on• plot(t,y,'g')• • y=(4/pi)*[sin(t)+sin(3*t)/3+sin(5*t)/5+sin(7*t)/7+sin(9*t)/9+sin(11*t)/11+sin(13*t)/13];• plot(t,y,'r')

Page 7: Matlab Serie de Fourier

0 1 2 3 4 5 6 7 8 9 10-1.5

-1

-0.5

0

0.5

1

1.5

Page 8: Matlab Serie de Fourier

y=(4/pi)*[sin(t)+sin(3*t)/3+sin(5*t)/5+sin(7*t)/7+sin(9*t)/9+sin(11*t)/11+sin(13*t)/13+sin(15*t)/15 +sin(17*t)/17];

plot(t,y,'r')

Para 17