Anda di halaman 1dari 5

TRABAJO DE CASA I)

TAREA 1
Simule en Matlab una onda con las siguientes caractersticas:
Amplitud: 5 voltios; Frecuencia=1Khz. Y plote el grafico correspondiente. Utilize
las funciones xlabel, ylable, title y grid.
SOLUCION:

Voltaje vs. Tiempo

5
4
3
2
1
Voltaje

clc
clear all
close all
A=5;
f=1000;
w=0:2*pi/100:2*pi;
t=w/(pi*f);
Y=A*sin(2*w);
plot(t,Y,'r')
xlabel('Tiempo');
ylabel('Voltaje');
title('Voltaje vs. Tiempo');
grid on;

0
-1
-2
-3
-4
-5

0.2

0.4

0.6

0.8

1
Tiempo

1.2

1.4

1.6

1.8

2
-3

x 10

TAREA 2
Repita el ejercicio de la tarea 1, ahora en el simulink y observe la seal generado
en el osciloscopio.
SOLUCION:
Muestra de seal en osciloscopio

5
4
3
2
1

Voltaje

sim('Telecom_1_tarea_02')
figure (1)
plot(sc(:,1),sc(:,2),'b')
xlabel('Tiempo');
ylabel('Voltaje');
title('Muestra de seal en
osciloscopio');
grid on;

0
-1
-2
-3
-4

TAREA 3

-5

0.1

0.2

0.3

0.4

0.5
Tiempo

0.6

0.7

0.8

0.9

1
-3

x 10

Utilizando el resultado del ejercicio 1, verifique cuantas muestras fueron


necesarias para representar la seal generada (utilice la funcin lenght).
SOLUCION:
Para TAREA I

UNIVERSIDAD NACIONAL DEL CALLAO


Facultad de Ingeniera Elctrica y Electrnica
Escuela Profesional de Ingeniera Electrnica

length (t)

101

TAREA 4
Simule la seal considerando apenas 100 muestras para representarlo.
Considere las mismas caractersticas de la tarea 1. Presente los resultados a
travs de grfico y tabla en el prompt del Matlab.
SOLUCION:

clc
clear all
close all
A=5;
f=1000;
w=0:2*pi/99:2*pi; %Cambiar 100 por 99
t=w/(pi*f);
Y=A*sin(2*w);
plot(t,Y,'r')
xlabel('Tiempo');
ylabel('Voltaje');
title('Voltaje vs. Tiempo');
grid on;
length (t) %ans = 100

TAREA 5
Secuencia 0,0,1,2,1,0,-1,0,0

Plote el grafico correspondiente a la frecuencia 2{001210-100}, utilice la funcin


stem y las dems funciones de presentacin grafica.
SOLUCION:

1.5

0.5

TAREA 1
Telecomunicaciones I

-0.5

-1

UNIVERSIDAD NACIONAL DEL CALLAO


Facultad de Ingeniera Elctrica y Electrnica
Escuela Profesional de Ingeniera Electrnica

clc
clear all
close all
t=[0 0 1 2 1 0 -1 0 0];
stem(t,'fill','--');
title('Secuencia 0,0,1,2,1,0,-1,0,0');
grid on;

Con el comando stair:


Secuencia 0,0,1,2,1,0,-1,0,0

1.5

0.5

-0.5

-1

TAREA 6
Considere las frecuencias {001210-100}{102010-100} y las seales senoidales y1
e y2 con frecuencias de 1Khz y 500Hz.,y amplitudes de 5V y 3,5V. Utilice la
funcin subplot para esbocar los 4 graficos simultneamente en una nica tela.
SOLUCION:
clc
clear all
close all
x1=[0 0 1 2 1 0 -1 0 0];

TAREA 1
Telecomunicaciones I

x2=[1 0 2 0 1 0 -1 0 0];
A1=5;
f1=1000;
w1=0:2*pi/99:2*pi;

UNIVERSIDAD NACIONAL DEL CALLAO


Facultad de Ingeniera Elctrica y Electrnica
Escuela Profesional de Ingeniera Electrnica

t1=w1/(pi*f1);
Y1=A1*sin(2*w1);
A2=3.5;
f2=500;
w2=0:2*pi/99:2*pi;
t2=w2/(pi*f2);
Y2=A2*sin(2*w2);
subplot(4,1,1)
plot(t1,Y1,'k')
xlabel('Tiempo');
ylabel('Voltaje');
title('Voltaje vs. Tiempo
(A=5V;f=1kHz)');
grid on;
subplot(4,1,2)

plot(t2,Y2,'r')
xlabel('Tiempo');
ylabel('Voltaje');
title('Voltaje vs. Tiempo
(A=3.5V;f=0.5kHz)');
grid on;
subplot(4,1,3)
stem(x1,'fill','--');
title('Secuencia 0 0 1 2 1 0 -1 0 0');
grid on;
subplot(4,1,4)
stem(x2,'fill','--');
title('Secuencia 1 0 2 0 1 0 -1 0 0');
grid on;

Voltaje vs. Tiempo (A=5V;f=1kHz)

Voltaje

-5

0.2

0.4

0.6

0.8

1
Tiempo

1.2

1.4

1.6

1.8

Voltaje vs. Tiempo (A=3.5V;f=0.5kHz)

2
-3

x 10

Voltaje

2
0
-2
-4

0.5

1.5

2
Tiempo

2.5

3.5

Secuencia 0 0 1 2 1 0 -1 0 0

4
-3

x 10

1
0
-1

Secuencia 1 0 2 0 1 0 -1 0 0

2
1
0
-1

TAREA 7
Utilizando el Simulink genere varias formas de onda (senoidal y cuadrada) y
observe estas ondas en un nico osciloscopio.
SOLUCION:

sim('Telecom_1_tarea_07')
figure (1)
plot(sc(:,1),sc(:,2),'b',sc(:,1),sc(:,3),'m')
TAREA 1
Telecomunicaciones I

UNIVERSIDAD NACIONAL DEL CALLAO


Facultad de Ingeniera Elctrica y Electrnica
Escuela Profesional de Ingeniera Electrnica

xlabel('Tiempo');
ylabel('Voltaje');
title('Muestra de seal en osciloscopio');
grid on;

Muestra de seal en osciloscopio

1.5

Voltaje

0.5

-0.5

-1

-1.5

-2

TAREA 1
Telecomunicaciones I

Tiempo

Anda mungkin juga menyukai