Sie sind auf Seite 1von 8

Reporte de Laboratorio Nro.1 Convolucin y Digitalizacin de seales.

Autores:
Mara Fernanda Bentez Len.
Maritza Elizabeth Palacios Morocho.
Fecha de elaboracin: Jueves 02/04/15 Mdulo: VIII

REPORTE DE LABORATORIO DE PRCTICAS DE COMUNICACIONES ANALGICAS Nro. 1

Tema: Convolucin y Digitalizacin de seales.

Objetivos:
Realizar procesamiento de seales mediante el software MatLab.
Utilizar los conceptos de la Convolucin y digitalizacin en el procesamiento de seales.
Creacin de distintos tipos de seales: seno, coseno, delta dirac, triangular, tren de
pulsos.
Convolucin de todas las seales en tiempo continuo.
Discretizacin de las seales creadas.
Convolucin de todas las seales en tiempo discreto
Graficar las seales resultantes y a utilizarse en la convolucin.

BREVE RESEA TERICA:

La convolucin es una operacin fundamental en procesamiento de seales por su estrecha


relacin con los procesos de transmisin de las seales. La funcin de convolucin se expresa
por el smbolo *. La convolucin de una funcin de entrada f(x) y la respuesta al impulso de un
sistema lineal h(x) representa la cantidad de traslape de una funcin conforme una sta se
mueve sobre la otra generando un tipo de combinacin entre las dos funciones g(x) = f(x) h(x).
Para hacer posible la transmisin de informacin es necesario realizar algunas operaciones
(convolucin, modulacin, etc). En la actualidad las comunicaciones se realizan mediante
sistemas digitales lo que conlleva la digitalizacin del mensaje para poder ser transmitido.

TRABAJO EXPERIMENTAL:

% -------------------------------------------------------------------%
% SEALES EN TIEMPO CONTINUO
% -------------------------------------------------------------------%
handles.ejex=0:pi/180:pi/2;
handles.x= -10:0.1:10;
A=handles.AMPLITUD; % Amplitud
B=handles.FRECUENCIA; % Frecuencia
fun=get(handles.LISTA,'Value');
handles.y1=A*sin(2*pi*B*handles.ejex); %Seno
handles.y2=A*cos(2*pi*B*handles.ejex); % Coseno
handles.y3=A*sawtooth(2*pi*B*handles.ejex); % Diente de Sierra
handles.y4=A*[zeros(1,100),1,zeros(1,100)]; % Delta de Dirac
handles.y5=A*sawtooth((B)*handles.x,0.5); % Seal Triangular
handles.y6=A*square(handles.x,B); % Tren de pulsos
axes(handles.onda)

% -------------------------------------------------------------------%
Reporte de Laboratorio Nro.1 Convolucin y Digitalizacin de seales.
% CONVOLUCIN EN TIEMPO CONTINUO
% -------------------------------------------------------------------%

handles.ejex=0:pi/180:pi/2;
handles.x= -10:0.1:10;
handles.z1=conv(handles.y1,handles.y8); % Convolucin de 2 seales
.
. % Convolucin de todas las
. posibles combinaciones de las
. seales
.
handles.z30=conv(handles.y6,handles.y11);
axes(handles.onda6)

% -------------------------------------------------------------------%
% DISCRETIZACIN DE LAS SEALES
% -------------------------------------------------------------------%

axes(handles.onda4)
switch fun
case 2
stem(handles.y1);
case 3
stem(handles.y2);
case 4
stem(handles.y3);
case 5
stem(handles.y4);
case 6
stem(handles.y5);
case 7
stem(handles.y6);
end

% -------------------------------------------------------------------%
% CONVOLUCIN EN TIEMPO DISCRETO
% -------------------------------------------------------------------%
switch fun
case 2
stem( handles.z1);
case 3
stem( handles.z2);
case 4
stem( handles.z3);
case 5
stem (handles.z4);
.
.
.

end

Observaciones:
Reporte de Laboratorio Nro.1 Convolucin y Digitalizacin de seales.
Conclusiones:

El software de Matlab nos facilita el trabajo al momento de realizar convoluciones tanto


en tiempo discreto como en tiempo continuo.

Fecha de Defensa: Jueves 09/04/15 Calificacin: _____________________


Reporte de Laboratorio Nro.1 Convolucin y Digitalizacin de seales.
ANEXO:
PROGRAMA COMPLETO:
function varargout = PRACTICA1(varargin) % hObject handle to figure
% PRACTICA1 MATLAB code for % eventdata reserved - to be defined in
PRACTICA1.fig a future version of MATLAB
% PRACTICA1, by itself, creates a % handles structure with handles and
new PRACTICA1 or raises the existing user data (see GUIDATA)
% singleton*. % varargin command line arguments to
% PRACTICA1 (see VARARGIN)
% H = PRACTICA1 returns the handle
to a new PRACTICA1 or the handle to
% the existing singleton*. % Choose default command line output for
% PRACTICA1
% handles.output = hObject;
PRACTICA1('CALLBACK',hObject,eventData,h
andles,...) calls the local % Update handles structure
% function named CALLBACK in guidata(hObject, handles);
PRACTICA1.M with the given input
arguments. % UIWAIT makes PRACTICA1 wait for user
% response (see UIRESUME)
% PRACTICA1('Property','Value',...) % uiwait(handles.figure1);
creates a new PRACTICA1 or raises the
% existing singleton*. Starting
from the left, property value pairs are % --- Outputs from this function are
% applied to the GUI before returned to the command line.
PRACTICA1_OpeningFcn gets called. An function varargout =
% unrecognized property name or PRACTICA1_OutputFcn(hObject, eventdata,
invalid value makes property application handles)
% stop. All inputs are passed to % varargout cell array for returning
PRACTICA1_OpeningFcn via varargin. output args (see VARARGOUT);
% % hObject handle to figure
% *See GUI Options on GUIDE's Tools % eventdata reserved - to be defined in
menu. Choose "GUI allows only one a future version of MATLAB
% instance to run (singleton)". % handles structure with handles and
% user data (see GUIDATA)
% See also: GUIDE, GUIDATA, GUIHANDLES
% Get default command line output from
% Edit the above text to modify the handles structure
response to help PRACTICA1 varargout{1} = handles.output;

% Last Modified by GUIDE v2.5 08-Apr-


2015 01:55:49 % --- Executes on selection change in
LISTA.
% Begin initialization code - DO NOT function LISTA_Callback(hObject,
EDIT eventdata, handles)
gui_Singleton = 1; handles.ejex=0:pi/180:pi/2;
gui_State = struct('gui_Name', handles.x= -10:0.1:10;
mfilename, ... A=handles.AMPLITUD;
'gui_Singleton', B=handles.FRECUENCIA;
gui_Singleton, ... fun=get(handles.LISTA,'Value');
'gui_OpeningFcn', handles.y1=A*sin(2*pi*B*handles.ejex);
@PRACTICA1_OpeningFcn, ... handles.y2=A*cos(2*pi*B*handles.ejex);
'gui_OutputFcn', handles.y3=A*sawtooth(2*pi*B*handles.eje
@PRACTICA1_OutputFcn, ... x);
'gui_LayoutFcn', [] handles.y4=A*[zeros(1,100),1,zeros(1,100
, ... )];
'gui_Callback', handles.y5=A*sawtooth((B)*handles.x,0.5)
[]); ;
if nargin && ischar(varargin{1}) handles.y6=A*square(handles.x,B);
gui_State.gui_Callback = axes(handles.onda)
str2func(varargin{1}); switch fun
end case 2
plot(handles.y1);
if nargout case 3
[varargout{1:nargout}] = plot(handles.y2);
gui_mainfcn(gui_State, varargin{:}); case 4
else plot(handles.y3);
gui_mainfcn(gui_State, varargin{:}); case 5
end plot(handles.x,handles.y4);
% End initialization code - DO NOT EDIT case 6
plot(handles.x,handles.y5);
case 7
% --- Executes just before PRACTICA1 is plot(handles.x,handles.y6);
made visible. end
function PRACTICA1_OpeningFcn(hObject, axes(handles.onda4)
eventdata, handles, varargin) switch fun
% This function has no output args, see case 2
OutputFcn. stem(handles.y1);
Reporte de Laboratorio Nro.1 Convolucin y Digitalizacin de seales.
case 3 guidata(hObject,handles);
stem(handles.y2);
case 4
stem(handles.y3); % --- Executes during object creation,
case 5 after setting all properties.
stem(handles.y4); function AMPLITUD_CreateFcn(hObject,
case 6 eventdata, handles)
stem(handles.y5); % hObject handle to AMPLITUD (see
case 7 GCBO)
stem(handles.y6); % eventdata reserved - to be defined in
end a future version of MATLAB
% handles empty - handles not created
guidata(hObjetc, handles); until after all CreateFcns called

% Hint: edit controls usually have a


% Hints: contents = white background on Windows.
cellstr(get(hObject,'String')) returns % See ISPC and COMPUTER.
LISTA contents as cell array if ispc &&
% contents{get(hObject,'Value')} isequal(get(hObject,'BackgroundColor'),
returns selected item from LISTA get(0,'defaultUicontrolBackgroundColor')
)

% --- Executes during object creation, set(hObject,'BackgroundColor','white');


after setting all properties. end
function LISTA_CreateFcn(hObject,
eventdata, handles) % --- Executes on selection change in
% hObject handle to LISTA (see GCBO) LISTA1.
% eventdata reserved - to be defined in function LISTA1_Callback(hObject,
a future version of MATLAB eventdata, handles)
% handles empty - handles not created axes(handles.onda2)
until after all CreateFcns called handles.ejex=0:pi/180:pi/2;
handles.x= -10:0.1:10;
% Hint: popupmenu controls usually have A1=handles.AMPLITUD1;
a white background on Windows. B1=handles.FRECUENCIA1;
% See ISPC and COMPUTER. fun=get(handles.LISTA1,'Value');
if ispc && handles.y7=A1*sin(2*pi*B1*handles.ejex);
isequal(get(hObject,'BackgroundColor'), handles.y8=A1*cos(2*pi*B1*handles.ejex);
get(0,'defaultUicontrolBackgroundColor') handles.y9=A1*sawtooth(2*pi*B1*handles.e
) jex);
handles.y10=A1*[zeros(1,100),1,zeros(1,1
set(hObject,'BackgroundColor','white'); 00)];
end handles.y11=A1*sawtooth((B1)*handles.x,0
.5);
handles.y12=A1*square(handles.x,B1);
function FRECUENCIA_Callback(hObject, axes(handles.onda2)
eventdata, handles) switch fun
frecuencia=get(hObject,'String'); case 2
fre=str2double(frecuencia); plot(handles.y7);
handles.FRECUENCIA=fre; case 3
guidata(hObject,handles); plot(handles.y8);
case 4
% --- Executes during object creation, plot(handles.y9);
after setting all properties. case 5
function FRECUENCIA_CreateFcn(hObject, plot(handles.x,handles.y10);
eventdata, handles) case 6
% hObject handle to FRECUENCIA (see plot(handles.x,handles.y11);
GCBO) case 7
% eventdata reserved - to be defined in plot(handles.x,handles.y12);
a future version of MATLAB end
% handles empty - handles not created axes(handles.onda5)
until after all CreateFcns called switch fun
case 2
% Hint: edit controls usually have a stem(handles.y7);
white background on Windows. case 3
% See ISPC and COMPUTER. stem(handles.y8);
if ispc && case 4
isequal(get(hObject,'BackgroundColor'), stem(handles.y9);
get(0,'defaultUicontrolBackgroundColor') case 5
) stem(handles.y10);
case 6
set(hObject,'BackgroundColor','white'); stem(handles.y11);
end case 7
stem(handles.y12);
end
guidata(hObject, handles);
function AMPLITUD_Callback(hObject,
eventdata, handles)
amplitud=get(hObject,'String');
ampl=str2double(amplitud); % --- Executes during object creation,
handles.AMPLITUD=ampl; after setting all properties.
Reporte de Laboratorio Nro.1 Convolucin y Digitalizacin de seales.
function LISTA1_CreateFcn(hObject, handles.z25=conv(handles.y5,handles.y12)
eventdata, handles) ;
% hObject handle to LISTA1 (see GCBO) handles.z26=conv(handles.y6,handles.y7);
% eventdata reserved - to be defined in handles.z27=conv(handles.y6,handles.y8);
a future version of MATLAB handles.z28=conv(handles.y6,handles.y9);
% handles empty - handles not created handles.z29=conv(handles.y6,handles.y10)
until after all CreateFcns called ;
handles.z30=conv(handles.y6,handles.y11)
% Hint: popupmenu controls usually have ;
a white background on Windows. axes(handles.onda6)
% See ISPC and COMPUTER. switch fun
if ispc && case 2
isequal(get(hObject,'BackgroundColor'), stem( handles.z1);
get(0,'defaultUicontrolBackgroundColor') case 3
) stem( handles.z2);
case 4
set(hObject,'BackgroundColor','white'); stem( handles.z3);
end case 5
stem (handles.z4);
% --- Executes on selection change in case 6
CONVOLUCIONES. stem( handles.z5);
function CONVOLUCIONES_Callback(hObject, case 7
eventdata, handles) stem( handles.z6);
handles.ejex=0:pi/180:pi/2; case 8
handles.x= -10:0.1:10; stem( handles.z7);
A=handles.AMPLITUD; case 9
B=handles.FRECUENCIA; stem( handles.z8);
A1=handles.AMPLITUD1; case 10
B1=handles.FRECUENCIA1; stem( handles.z9);
fun=get(handles.CONVOLUCIONES,'Value'); case 11
handles.y1=A*sin(2*pi*B*handles.ejex); stem( handles.z10);
handles.y2=A*cos(2*pi*B*handles.ejex); case 12
handles.y3=A*sawtooth(2*pi*B*handles.eje stem( handles.z11);
x); case 13
handles.y4=A*[zeros(1,100),1,zeros(1,100 stem(handles.z12);
)]; case 14
handles.y5=A*sawtooth((B)*handles.x,0.5) stem( handles.z13);
; case 15
handles.y6=A*square(handles.x,B); stem( handles.z14);
handles.y7=A1*sin(2*pi*B1*handles.ejex); case 16
handles.y8=A1*cos(2*pi*B1*handles.ejex); stem( handles.z15);
handles.y9=A1*sawtooth(2*pi*B1*handles.e case 17
jex); stem( handles.z16);
handles.y10=A1*[zeros(1,100),1,zeros(1,1 case 18
00)]; stem(handles.z17);
handles.y11=A1*sawtooth((B1)*handles.x,0 case 19
.5); stem(handles.z18);
handles.y12=A1*square(handles.x,B1); case 20
handles.z1=conv(handles.y1,handles.y8); stem(handles.z19);
handles.z2=conv(handles.y1,handles.y9); case 21
handles.z3=conv(handles.y1,handles.y10); stem(handles.z20);
handles.z4=conv(handles.y1,handles.y11); case 22
handles.z5=conv(handles.y1,handles.y12); stem(handles.z21);
handles.z6=conv(handles.y2,handles.y7); case 23
handles.z7=conv(handles.y2,handles.y9); stem(handles.z22);
handles.z8=conv(handles.y2,handles.y10); case 24
handles.z9=conv(handles.y2,handles.y11); stem(handles.z23);
handles.z10=conv(handles.y2,handles.y12) case 25
; stem(handles.z24);
handles.z11=conv(handles.y3,handles.y7); case 26
handles.z12=conv(handles.y3,handles.y8); stem(handles.z25);
handles.z13=conv(handles.y3,handles.y10) case 27
; stem(handles.z26);
handles.z14=conv(handles.y3,handles.y11) case 28
; stem(handles.z27);
handles.z15=conv(handles.y3,handles.y12) case 29
; stem(handles.z28);
handles.z16=conv(handles.y4,handles.y7); case 30
handles.z17=conv(handles.y4,handles.y8); stem(handles.z29);
handles.z18=conv(handles.y4,handles.y9); case 31
handles.z19=conv(handles.y4,handles.y11) stem(handles.z30);
; end
handles.z20=conv(handles.y4,handles.y12) axes(handles.onda3)
; switch fun
handles.z21=conv(handles.y5,handles.y7); case 2
handles.z22=conv(handles.y5,handles.y8); plot( handles.z1);
handles.z23=conv(handles.y5,handles.y9); case 3
handles.z24=conv(handles.y5,handles.y10) plot( handles.z2);
; case 4
plot( handles.z3);
Reporte de Laboratorio Nro.1 Convolucin y Digitalizacin de seales.
case 5 % See ISPC and COMPUTER.
plot(handles.z4); if ispc &&
case 6 isequal(get(hObject,'BackgroundColor'),
plot( handles.z5); get(0,'defaultUicontrolBackgroundColor')
case 7 )
plot( handles.z6);
case 8 set(hObject,'BackgroundColor','white');
plot( handles.z7); end
case 9
plot( handles.z8);
case 10
plot( handles.z9); function AMPLITUD1_Callback(hObject,
case 11 eventdata, handles)
plot( handles.z10); amplitud1=get(hObject,'String');
case 12 ampl1=str2double(amplitud1);
plot( handles.z11); handles.AMPLITUD1=ampl1;
case 13 guidata(hObject,handles);
plot(handles.z12);
case 14 % --- Executes during object creation,
plot( handles.z13); after setting all properties.
case 15 function AMPLITUD1_CreateFcn(hObject,
plot( handles.z14); eventdata, handles)
case 16 % hObject handle to AMPLITUD1 (see
plot( handles.z15); GCBO)
case 17 % eventdata reserved - to be defined in
plot( handles.z16); a future version of MATLAB
case 18 % handles empty - handles not created
plot(handles.z17); until after all CreateFcns called
case 19
plot(handles.z18); % Hint: edit controls usually have a
case 20 white background on Windows.
plot(handles.z19); % See ISPC and COMPUTER.
case 21 if ispc &&
plot(handles.z20); isequal(get(hObject,'BackgroundColor'),
case 22 get(0,'defaultUicontrolBackgroundColor')
plot(handles.z21); )
case 23
plot(handles.z22); set(hObject,'BackgroundColor','white');
case 24 end
plot(handles.z23);
case 25
plot(handles.z24);
case 26 function FRECUENCIA1_Callback(hObject,
plot(handles.z25); eventdata, handles)
case 27 frecuencia1=get(hObject,'String');
plot(handles.z26); fre1=str2double(frecuencia1);
case 28 handles.FRECUENCIA1=fre1;
plot(handles.z27); guidata(hObject,handles);
case 29
plot(handles.z28); % --- Executes during object creation,
case 30 after setting all properties.
plot(handles.z29); function FRECUENCIA1_CreateFcn(hObject,
case 31 eventdata, handles)
plot(handles.z30); % hObject handle to FRECUENCIA1 (see
end GCBO)
guidata(hObject, handles); % eventdata reserved - to be defined in
a future version of MATLAB
% --- Executes during object creation, % handles empty - handles not created
after setting all properties. until after all CreateFcns called
function
CONVOLUCIONES_CreateFcn(hObject, % Hint: edit controls usually have a
eventdata, handles) white background on Windows.
% hObject handle to CONVOLUCIONES % See ISPC and COMPUTER.
(see GCBO) if ispc &&
% eventdata reserved - to be defined in isequal(get(hObject,'BackgroundColor'),
a future version of MATLAB get(0,'defaultUicontrolBackgroundColor')
% handles empty - handles not created )
until after all CreateFcns called
set(hObject,'BackgroundColor','white');
% Hint: popupmenu controls usually have end
a white background on Windows.
Reporte de Laboratorio Nro.1 Convolucin y Digitalizacin de seales.

Das könnte Ihnen auch gefallen