Está en la página 1de 11

UNIVERSIDAD NACIONAL MAYOR

DE SAN MARCOS
Fundada en 1551

Facultad de Ingeniera Electrnica Elctrica y Tele.


E.A.P. Ingeniera Electrnica

Curso : Introduccin a las


Telecomunicaciones
Profesor : Ing. Sixto LLosa
Alumno
Angel

: Arapa Chuchon Miguel

Cdigo

: 12190125

Informe : Procesamiento de seales


y funciones peridicas
usando MatLab

Lima, Abril del 2015

Comandos Utilizados:
y_deg=y*180/pi Convierte el nmero de grados a radianes
%fix = redondea hacia cero
floor = redondea hacia menor infinito
ceil = redondea hacia infinito
round = redondea hacia el entero ms prximo
mag_c1= abs(c1) = para verificar resultados
plot = para graficar una funcin
figure = muestra la figura
grid = separa en cuadrillas
xlabel = variable independiente
ylabel = variable dependiente
linspace = crear datos
z =(y>=0) = fija a cero los valores negativos

FACULTAD DE INGENIERIA ELECTRONICA ELECTRICA Y


TELECOMUNICACIONES
E.A.P INGENIERIA ELECTRONICA

LABORATORIO DE INTRODUCCION A LAS TELECOMUNICACIONES

1.- FUNCIONES PERIODICAS


>> x= sqrt(2)/2

y3 =
3

x=
y4 =
0.7071
3
>> y= asin(x)
y=

------------------------------------------------------->> x= sqrt(9)/2

0.7854
x=
>> y_deg=y*180/pi
1.5000
y_deg =
>> y= asin(x)
45.0000
y=
>> x= sqrt(3^2+4^2)
1.5708 - 0.9624i
x=
>> y_deg=y*180/pi
5
y_deg =
>> y= rem(23,4)
90.0000 -55.1428i
y=
>> x= sqrt(12^2+5^2)
3
x=
>> x= 2.6 ,
y1=fix(x),y2=floor(x),
y3=ceil(x), y4=round(x)

13
>> y= rem(34,6)

x=
y=
2.6000
4
y1 =
2

>> x= 3.5 ,
y1=fix(x),y2=floor(x),
y3=ceil(x), y4=round(x)
x=

y2 =
3.5000
2

-----------------------------------------------y1 =
3

>> a= 1 ; b= 5 ; c=6
c=

y2 =
6
3
>> x1= (-b +sqrt(b^2-4*a*c))/
(2*a)
y3 =
x1 =
4
-2
y4 =
4

2.- EJERCICIO EC. GENERAL


DE 2DO
GRADO DE SOLUCIN
REAL
>> a= 1 ; b= 5 ; c=6
c=
6
>> x1= (-b +sqrt(b^2-4*a*c))/
(2*a)
x1 =
-2
>> x2 =(-b -sqrt(b^2-4*a*c))/(2*a)

>> x2 =(-b -sqrt(b^2-4*a*c))/(2*a)


x2 =
-3
>> a*x1^2+b*x1+c % sustituir x1
para comprobar la respuesta
ans =
0
>> a*x2^2+b*x2+c % en forma
similar al anterior para x2
ans =
0

- EC GENERAL DE 2DO
GRADO DE
SOLUCION
COMPLEJA

x2 =
-3
>> a*x1^2+b*x1+c % sustituir x1
para comprobar la respuesta
ans =
0

>> a =4 ; b = 3 ; c= 8
c=
8
>> x1= (-b +sqrt(b^2-4*a*c))/
(2*a)

x1 =
-0.3750 + 1.3636i
>> x2 =(-b -sqrt(b^2-4*a*c))/(2*a)
x2 =

6.0000 + 0.4794i
>> c5= 6+sin(.5)*j
c5 =
6.0000 + 0.4794i

-0.3750 - 1.3636i
>> a*x1^2+b*x1+c % sustituir x1
para comprobar la respuesta
ans =
8.8818e-16
EXPRESION EN NUMEROS
COMPLEJOS

>> c1 = 1-2i
c1 =
1.0000 - 2.0000i
>> c1 =1- 2j
c1 =
1.0000 - 2.0000i
>> c2= 3*(2-sqrt(-1)*3)

3.- CONSTRUCCION DE
ARRAYS
x=linspace(0.4*pi,60);
y=sin(x);
figure(1)
plot(x,y)
z=cos(x);
figure(2)
plot(x,z,x,y)
figure(3)
plot(x,y,x,y,'+')
figure(4)
plot(y,z)
figure(5)
plot(x,y,x,2*y.*z,'--')
grid
xlabel('Variable independiente
x')
ylabel('Variables dependientes')
title('2sin(x)cos(x)sin(2x)')
figure(6)
plot3(y,z,x),grid

c2 =
6.0000 - 9.0000i
>> c3= sqrt(-2)
c3 =
0.0000 + 1.4142i
>> c4= 6+sin(.5)*i
c4 =

FIGURA 1

FIGURA 6
FIGURA 2

- Generacin de seales Discontinuas

FIGURA 3

x=linspace(0,16,100);%crear
datos
y=sin(x);%calcular seno
z=(y>=0).*y;%fija a cero los
valores negativos de seno(x)
z=z+0.5*(y<0);%si seno(x) es
negativo sumar 0.5
z=(x<=14).*z;%fijar a cero os
valores mayores que x=8
plot(x,z)
xlabel('x'),ylabel('z=f(x)')
title('Seal discontinua')

FIGURA 4

FIGURA 5

- Ejm 2 Generacin de seales


Discontinuas
x=linspace(0,25,150);%crear
datos

y=sin(x);%calcular seno
z=(y>=0).*y;%fija a cero los
valores negativos de seno(x)
z=z+0.3*(y<0);%si seno(x) es
negativo sumar 0.3
z=(x<=14).*z;%fijar a cero os
valores mayores que x=8
plot(x,z)
xlabel('x'),ylabel('z=f(x)')
title('Seal discontinua')

subplot(2,2,4)%Selecciona
la subgrafica inferior
derecha
plot(x,b),axis([0 4*pi -40
40]),title('tg=sin(x)/cos(x
)')

4.- SUBDIVISION DE
VENTANAS DE GRAFICOS
x=linspace(0,4*pi,60);
y=sin(x);
z=cos(x);
a=2*sin(x).*cos(x);
b=sin(x)./(cos(x)+eps);
subplot(2,2,1)%Selecciona
la subgrafica superior
izquierda
plot(x,y),axis([0 4*pi -1
1]),title('sin(x)')
subplot(2,2,2)%Selecciona
la subgrafica superior
derecha
plot(x,z),axis([0 4*pi -1
1]),title('cos(x)')
subplot(2,2,3)%Selecciona
la subgrafica inferior
izquierda
plot(x,a),axis([0 4*pi -1
1]),title('2sin(x)cos(x)')

EJM.2 SUBDIVISION DE
VENTANAS DE GRAFICOS
x=linspace(0,6*pi,80);
y=sin(x);
z=cos(x);
a=2*sin(x).*cos(x);

b=sin(x)./(cos(x)+eps);
subplot(2,2,1)%Selecciona la
subgrafica superior izquierda
plot(x,y),axis([0 4*pi -2
1]),title('sin(x)')
subplot(2,2,2)%Selecciona la
subgrafica superior derecha
plot(x,z),axis([0 4*pi -2
1]),title('cos(x)')
subplot(2,2,3)%Selecciona la
subgrafica inferior izquierda
plot(x,a),axis([0 4*pi -2
1]),title('2sin(x)cos(x)')
subplot(2,2,4)%Selecciona la
subgrafica inferior derecha
plot(x,b),axis([0 4*pi -60
60]),title('tg=sin(x)/cos(x)')

plot(x,z,'m')
hold off

Ejm 2:
% Manipulacion de Graficos
x= linspace(0,3*pi,40);
y = sin(x);
z = cos(x);
plot(x,y)
hold on
plot(x,z,'m')
hold off

5.- MANIPULACION DE
GRAFICOS
% Manipulacion de Graficos
x= linspace(0,6*pi,60);
y = sin(x);
z = cos(x);
plot(x,y)
hold on

También podría gustarte