Académique Documents
Professionnel Documents
Culture Documents
I PORTADA
UNIVERSIDAD TCNICA DE AMBATO
Facultad de Ingeniera en Sistemas, Electrnica e Industrial
Proyecto Acadmico de Fin de Semestre
Ttulo: Resolucin de Sistemas y Secuencias
Discretas a travs del Software Matlab.
Carrera: Ingeniera en Electrnica y
Comunicaciones
rea Acadmica: Electrnica
Lnea de Investigacin: Procesamiento Digital de Seales
Ciclo Acadmico y paralelo: Sptimo Electrnica y
Comunicaciones A
Alumnos participantes: Alarcon Andrea
Andrade Andy
Arroyo Daniel
Carrasco Fernando
Chvez Lissette
Laverde Israel
Monta Cristhian
Valencia Andrs
Mdulo y Docente: Procesamiento Digital de Seales
Ing. Marco Jurado
1.1 Ttulo
Resolucin de Sistemas y Secuencias Discretas a travs del
software Matlab.
1.2 Objetivos
1.3 Resumen
1.5 Introduccin
SECUENCIAS FUNDAMENTALES
Impulso Unitario: Es una funcin matemtica que tiene como
caracterstica, el tener un valor de 1 cuando es evaluado en 0
mientras que para el resto de valores la funcin vale 1 desde
a . Se representa como:
1 ; n=00 ;n 0
( n )=
0 ;n< 0
1;n0
1 ( n )=
y (n)={ [ x 1 ( n 0 )+ x2 ( n0 ) ][ x 1 ( n1 ) + x 2 ( n1 ) ] [ x1 ( n m ) + x 2 ( n m ) ]
manera:
y ( n )=x 1 ( n ) . x 2 (n)
y (n)={ [ x 1 ( n 0 ) x 2 ( n 0 ) ][ x1 ( n1 ) x 2 ( n1 ) ] [ x 1 ( nm ) x 2 ( nm ) ]
y (n)=[ x ( n0 ) x ( n1 ) x ( n2 ) . x ( n m ) ]
muestras.
Escalamiento: En el escalado de variable se sustituye la
determinados puntos.
Espejo: Consiste en dibujar la seal x (n ) en el instante
n .
CONVOLUCIN
UNIVERSIDAD TCNICA DE AMBATO
FACULTAD DE INGENIERA EN SISTEMAS, ELECTRNICA E INDUSTRIAL
CARRERA DE INGENIERA EN ELECTRNICA Y COMUNICACIONES.
PERODO ACADMICO: ABRIL 2016 AGOSTO 2016
secuencia h(n).
y (n)=x (n)h(n)
Propiedades de Convolucin:
UNIVERSIDAD TCNICA DE AMBATO
FACULTAD DE INGENIERA EN SISTEMAS, ELECTRNICA E INDUSTRIAL
CARRERA DE INGENIERA EN ELECTRNICA Y COMUNICACIONES.
PERODO ACADMICO: ABRIL 2016 AGOSTO 2016
x [n]h[n]=h[n]x [n ]
h1 [n] h2 [n]
respuesta impulsiva y respectivamente. Esta
p=0
0
Ambos trminos de esta ecuacin pueden dividirse por , si
0
no es cero, normalizando =1 la ecuacin LCCD puede ser
escrita:
N
x ( nq ) q y ( n p ) p
p=1
M
y ( n )=
q=0
entradas anteriores x (n p) .
UNIVERSIDAD TCNICA DE AMBATO
FACULTAD DE INGENIERA EN SISTEMAS, ELECTRNICA E INDUSTRIAL
CARRERA DE INGENIERA EN ELECTRNICA Y COMUNICACIONES.
PERODO ACADMICO: ABRIL 2016 AGOSTO 2016
TRANSFORMADA Z
La transformada z es la contraparte en tiempo discreto de la
transformada de Laplace en tiempo continuo, y ambas tienen
una relacin similar a la transformada de Fourier
correspondiente. Una razn para usar la transformada z es que
representa una generalizacin de la transformada de Fourier
que puede ser aplicada a una ms amplia variedad de seales,
adems que la notacin en la solucin de problemas resulta ser
ms conveniente y simple.
X ( e j )= x(n)e jn .
n =
X ( z )= x (n) z .
n
n=
TRANSFORMADA DE FOURIER
Anlisis espectral
Convolucin rpida
Sntesis de sonido por modelado espectral
Compresin de audio
Filtrado, etc.
UNIVERSIDAD TCNICA DE AMBATO
FACULTAD DE INGENIERA EN SISTEMAS, ELECTRNICA E INDUSTRIAL
CARRERA DE INGENIERA EN ELECTRNICA Y COMUNICACIONES.
PERODO ACADMICO: ABRIL 2016 AGOSTO 2016
siguiente ecuacin:
X ( e j )= x( n)e jn
n =
|x (n) e jn|=S<
n=
DTFT INVERSA
1
x (n)= X ( e j) e jn d
2
UNIVERSIDAD TCNICA DE AMBATO
FACULTAD DE INGENIERA EN SISTEMAS, ELECTRNICA E INDUSTRIAL
CARRERA DE INGENIERA EN ELECTRNICA Y COMUNICACIONES.
PERODO ACADMICO: ABRIL 2016 AGOSTO 2016
Ejecutamos:
g=filter (B , A , delta)
1.6.2 Materiales
1.10 ANEXOS
1.10.1 Grficas
UNIVERSIDAD TCNICA DE AMBATO
FACULTAD DE INGENIERA EN SISTEMAS, ELECTRNICA E INDUSTRIAL
CARRERA DE INGENIERA EN ELECTRNICA Y COMUNICACIONES.
PERODO ACADMICO: ABRIL 2016 AGOSTO 2016
SECUENCIAS DISCRETAS
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before SECUENCIAS_DISCRETAS is made
visible.
function SECUENCIAS_DISCRETAS_OpeningFcn(hObject, eventdata,
handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see
GUIDATA)
% varargin command line arguments to SECUENCIAS_DISCRETAS
(see VARARGIN)
varargout{1} = handles.output;
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see
GUIDATA)
cla
t=0-30:30;
x=[zeros(1,30) ones(1, length(t)-30)];
axes(handles.axes1)
stem(t,x)
ylabel('x(n)')
xlabel('n')
set(handles.axes2,'Visible','off')
axes(handles.axes2)
text('Interpreter','latex','String','$$ Secuencia \,\,
discreta\,\,x(n)$$',...
'Position',[0 1.2],...
'FontSize',14);
text('Interpreter','latex','String','$$ x(n)= \mu_{-1}\,(n)$
$',...
'Position',[0 1],...
'FontSize',14);
set(handles.axes2,'Visible','off')
axes(handles.axes2)
text('Interpreter','latex','String','$$ Secuencia \,\,
discreta\,\,x(n)$$',...
'Position',[0 1.2],...
'FontSize',14);
text('Interpreter','latex','String','$$ x(n)=
\cos(\frac{n\, \pi}{4})\,\mu_{-1}\,(n)$$',...
'Position',[0 1],...
'FontSize',14)
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of
MATLAB
% handles structure with handles and user data (see
GUIDATA)
cla
axes(handles.axes1)
t=-30:30;
x=[zeros(1,30),1,zeros(1,30)];
stem(t,x)
ylabel('x(n)')
xlabel('n')
set(handles.axes2,'Visible','off')
axes(handles.axes2)
text('Interpreter','latex','String','$$ Secuencia \,\,
discreta\,\,x(n)$$',...
'Position',[0 1.2],...
'FontSize',14);
text('Interpreter','latex','String','$$ x(n)= \delta\,(n)$
$',...
'Position',[0 1],...
'FontSize',14);
set(handles.axes2,'Visible','off')
axes(handles.axes2)
text('Interpreter','latex','String','$$ Secuencia \,\,
discreta\,\,x(n)$$',...
'Position',[0 1.2],...
'FontSize',14);
UNIVERSIDAD TCNICA DE AMBATO
FACULTAD DE INGENIERA EN SISTEMAS, ELECTRNICA E INDUSTRIAL
CARRERA DE INGENIERA EN ELECTRNICA Y COMUNICACIONES.
PERODO ACADMICO: ABRIL 2016 AGOSTO 2016
set(handles.axes2,'Visible','off')
axes(handles.axes2)
text('Interpreter','latex','String','$$ Secuencia \,\,
discreta\,\,x(n)$$',...
'Position',[0 1.2],...
'FontSize',14);
text('Interpreter','latex','String','$$ x(n)= a^n\,\mu_{-1}\,
(n)$$',...
'Position',[0 1],...
'FontSize',14);
n=[-4:1:4]
X=[1 1 2 2 3 3 4 4 5]
%subplot(2,2,1)
axes(handles.axes1);
stem(n,X);
grid on
title(' SECUENCIA x1(n)')
ylabel('x1(n)')
xlabel('n')
% SECUENCIA X2(n)
n=[-4:1:4]
X1=[5 4 3 2 1 1 1 1 1]
%subplot(2,2,1)
axes(handles.axes2);
stem(n,X1);
grid on
title(' SECUENCIA x2(n)')
ylabel('x2(n)')
xlabel('n')
% SECUENCIA suma(n)
n=[-4:1:4];
s1=5;
s2=4;
s3=6;
s4=4;
s5=3;
s6=3;
s7=4;
s8=4;
s9=5;
Xs=[s1 s2 s3 s4 s5 s6 s7 s8 s9]
%subplot(2,2,1)
axes(handles.axes3);
stem(n,Xs);
grid on
title('Producto')
ylabel('x1(n) x2(n)')
xlabel('n')
n=[-4:1:4]
X=[1 1 2 2 3 3 4 4 5]
%subplot(2,2,1)
axes(handles.axes1);
stem(n,X);
grid on
title(' SECUENCIA x1(n)')
ylabel('x1(n)')
xlabel('n')
% SECUENCIA X2(n)
n=[-4:1:4]
X1=[1 1 2 2 3 3 4 4 5]
%subplot(2,2,1)
axes(handles.axes2);
stem(n,X1);
grid on
title(' SECUENCIA x2(n)')
ylabel('x2(n)')
xlabel('n')
% SECUENCIA suma(n)
n=[-4:1:4];
Xs=2.*[1 1 2 2 3 3 4 4 5]
%subplot(2,2,1)
axes(handles.axes3);
stem(n,Xs);
grid on
title('Producto escalar')
ylabel('2 x1(n)')
xlabel('n')
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
varargout{1} = handles.output;
% ESCALAMIENTO X(2n-4)
e=0:1:4;
Xe=[2 1 3 1 1];
%subplot(2,2,3)
axes(handles.axes3);
stem(e,Xe);
grid on
title('ESCALAMIENTO')
ylabel('X(2n-4)')
xlabel('n')
% ESPEJO X(-2n-4)
esp=-4:1:0;
Xe=[1 1 3 1 2];
%subplot(2,2,4)
axes(handles.axes4);
stem(esp,Xe);
grid on
title('ESPEJO')
ylabel('X(-2n-4)')
xlabel('n')
% ESPEJO X(-2n-4)
esp=-18:2:-2;
Xe=[1 1 1 3 3 1 1 2 2];
%subplot(2,2,4)
axes(handles.axes4);
stem(esp,Xe);
grid on
title('ESPEJO')
ylabel('X(-1/2n-5)')
xlabel('n')
end
%subplot(2,2,1)
axes(handles.axes1);
stem(n,X);
grid on
title(' SECUENCIA X(n)')
ylabel('X(n)')
xlabel('n')
% DESPLAZAMIENTO X(n-4)
nd=-1:1:7;
%subplot(2,2,2)
axes(handles.axes2);
stem(nd,X);
grid on
title(' DESPLAZAMIENTO')
ylabel('X(n-3)')
xlabel('n')
% ESCALAMIENTO X(n-3)
e=-4:1:4;
Xe=[2 2 1 1 3 3 1 1 1];
%subplot(2,2,3)
axes(handles.axes3);
stem(e,Xe);
grid on
title('ESCALAMIENTO')
ylabel('X(n-3)')
xlabel('n')
% ESPEJO X(-n-3)
esp=-4:1:4;
Xe=[ 1 1 1 3 3 1 1 2 2];
%subplot(2,2,4)
axes(handles.axes4);
stem(esp,Xe);
grid on
title('ESPEJO')
ylabel('X(-n-3)')
xlabel('n')
UNIVERSIDAD TCNICA DE AMBATO
FACULTAD DE INGENIERA EN SISTEMAS, ELECTRNICA E INDUSTRIAL
CARRERA DE INGENIERA EN ELECTRNICA Y COMUNICACIONES.
PERODO ACADMICO: ABRIL 2016 AGOSTO 2016
CONVOLUCIN
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
UNIVERSIDAD TCNICA DE AMBATO
FACULTAD DE INGENIERA EN SISTEMAS, ELECTRNICA E INDUSTRIAL
CARRERA DE INGENIERA EN ELECTRNICA Y COMUNICACIONES.
PERODO ACADMICO: ABRIL 2016 AGOSTO 2016
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
set(handles.axes7,'Visible','off')
axes(handles.axes7)
cla
text('Interpreter','latex','String','$
$y(n)=\sum_{k=-\infty}^\infty x(k)\, \,y(n-k) $$',...
'Position',[0 0.5],...
'FontSize',14);
n=[0:1:10];
xn = (cos (n));
axes(handles.axes1);
stem(n,xn), xlabel('n'), ylabel('x(n)'),title('Se_al 1');
%se_al h(n)
n=[0:1:10];
hn =(sin(n));
axes(handles.axes2);
stem(n,hn), xlabel('n'), ylabel('y(n)'),title('Se_al 2');
%Operacion convolucion
nconv=[0:1:20];
c=conv(xn,hn); %Permite realizar la convolucion
axes(handles.axes3);
stem(nconv,c), xlabel('n'),
ylabel('y(n)'),title('CONVOLUCI_N');
end
set(hObject,'BackgroundColor','white');
end
n=[-4:1:4];
X=[nn4 nn3 nn2 nn1 n0 np1 np2 np3 np4];
axes(handles.axes4);
stem(n,X), xlabel('n'), ylabel('x(n)'),title('Se_al 1');
% SECUENCIA X2(n)
UNIVERSIDAD TCNICA DE AMBATO
FACULTAD DE INGENIERA EN SISTEMAS, ELECTRNICA E INDUSTRIAL
CARRERA DE INGENIERA EN ELECTRNICA Y COMUNICACIONES.
PERODO ACADMICO: ABRIL 2016 AGOSTO 2016
nn42=eval(get(handles.edit14, 'String'));
nn32=eval(get(handles.edit15, 'String'));
nn22=eval(get(handles.edit16, 'String'));
nn12=eval(get(handles.edit17, 'String'));
n02=eval(get(handles.edit18, 'String'));
np12=eval(get(handles.edit19, 'String'));
np22=eval(get(handles.edit20, 'String'));
np32=eval(get(handles.edit21, 'String'));
np42=eval(get(handles.edit22, 'String'));
n=[-4:1:4];
X1=[nn42 nn32 nn22 nn12 n02 np12 np22 np32 np42];
axes(handles.axes5);
stem(n,X1), xlabel('n'), ylabel('h(n)'),title('Se_al 2');
%Operacion convolucion
nconv=[-8:1:8];
c=conv(X,X1); %Permite realizar la convolucion
axes(handles.axes6);
stem(nconv,c), xlabel('n'),
ylabel('y(n)'),title('CONVOLUCI_N');
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
disp(y)
% donde
% x(n) = {4,-2,8,7,6}
% Definir x(n)
disp(y)
disp(y)
'gui_OutputFcn',
@TransformadaZ_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
DFTF
function varargout = DTFT(varargin)
% DTFT M-file for DTFT.fig
% DTFT, by itself, creates a new DTFT or raises the
existing
% singleton*.
%
% H = DTFT returns the handle to a new DTFT or the
handle to
% the existing singleton*.
%
% DTFT('CALLBACK',hObject,eventData,handles,...) calls
the local
% function named CALLBACK in DTFT.M with the given input
arguments.
%
UNIVERSIDAD TCNICA DE AMBATO
FACULTAD DE INGENIERA EN SISTEMAS, ELECTRNICA E INDUSTRIAL
CARRERA DE INGENIERA EN ELECTRNICA Y COMUNICACIONES.
PERODO ACADMICO: ABRIL 2016 AGOSTO 2016
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State,
varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT