Sistemas de Comunicación
TRABAJO #1 Tema: Código de Manchester y Codificación Diferencial
Realizado por: Jorge Suasnavas Curso: 7mo “C” Fecha: 27-4-2012
CÓDIGO MANCHESTER CÓDIGO EN MATLAB: function MANCHESTER(h) %Example: %h=[1 0 0 1 1 0 1 0 1 0]; %MANCHESTER(h) clf; n=1; h=~h; l=length(h); h(l+1)=1; while n<=length(h)-1; t=n-1:0.001:n; if h(n) == 0 if h(n+1)==0 y=-(t
Datos ingresados en Matlab:
Gráfica Obtenida:
CODIGO MANCHESTER 1.5
1
0.5
0
-0.5
-1
-1.5
0
1
2
3
4
5
6
7
8
Figura 1. Resultado obtenido aplicando el código Manchester. CODIFICACIÓN DIFERENCIAL CÓDIGO EN MATLAB: function DIFERENCIAL(h) clf; n=1; l=length(h); h(l+1)=1; while n<=length(h)-1; t=n-1:0.001:n; if h(n) == 0 if h(n+1)==0 y=(t==n); else y=(t
Datos ingresados en Matlab:
Gráfica Obtenida: CODIFICACION DIFERENCIAL 1.5
1
0.5
0
-0.5
-1
-1.5
0
1
2
3
4
5
6
7
8
9
10
Figura 2. Resultado obtenido aplicando el Codificación Diferencial.