INFORME PRATICA N_1
Table of Contents
LITERAL 1 ....................................................................................................................... 1
LITERAL 2 ....................................................................................................................... 1
LITERAL 3 ....................................................................................................................... 2
LITERAL 4 ....................................................................................................................... 3
LITERAL 5 ....................................................................................................................... 4
LITERAL 6 ....................................................................................................................... 5
BIBLIOGRAFIA ................................................................................................................. 6
Realizado por: Willy Coronel 20/04/2019
LITERAL 1
1.- Usando el comando ztrans resolver el literal 4.1
clear;
close all;
clc;
syms n
x=2*kroneckerDelta(n)+4*kroneckerDelta(n-1);
ztrans(x)
syms n
x=sin((pi*n)/2)*heaviside(n-2);
ztrans(x)
ans =
4/z + 2
ans =
ztrans(sin((pi*(n + 3))/2), n, z)/z^3
LITERAL 2
2.- Usando el comando iztrans, encuentre la transformada z inversa del literal 4.2
syms z
f=z/(16*z^2+1);
iztrans(f)
1
INFORME PRATICA N_1
syms z
f=(z+0.3)/(z^2+0.75*z+0.125);
iztrans(f)
ans =
(-1i/4)^(n - 1)/32 + (1i/4)^(n - 1)/32
ans =
(12*kroneckerDelta(n, 0))/5 - (4*(-1/4)^n)/5 - (8*(-1/2)^n)/5
LITERAL 3
3.- Realice un archivo .m que permita hallar el valor final e inicial del ejercicio 4.3
syms z
f=(z-4)/(z^2+1.5*z+0.5);
%Valor final
f1=(z-1)*f;
limit(f1,z,1)
%Valor inicial
limit(f,z,inf)
syms z
f=(z^2-3*z+1)/(z^3+z^2-0.5*z+0.5);
%Valor final
f1=(z-1)*f;
limit(f1,z,1)
%Valor inicial
limit(f,z,inf)
ans =
ans =
ans =
ans =
2
INFORME PRATICA N_1
LITERAL 4
4.- Para el literal 4.4 a.- Utilizando Matlab y el comando FILTER compruebe los resultados obtenidos en
el trabajo preparatorio
a = [1 0.5 0];
b = [1 -1 0];
zi= [2 1];
% b.- Calcule la respuesta al impulso unitario
delta = [ zeros( 1 ,10 ), 1 , zeros( 1 ,10 ) ];
[y,zf] = filter(b,a,delta,zi)
% c.- Calcule la respuesta a la paso unitario
U = [zeros(1, 10), ones(1, 11)];
[y,zf] = filter(b,a,U,zi)
% d.- Calcule y(n) para todo n>=0, si x(n)=2^n*u(n) con y(-1)=3 y
y(-2)=2
n=0:1:10;
x = ((2).^n).*heaviside(n);
zi= [3 2];
[y,zf] = filter(b,a,x,zi)
y =
Columns 1 through 7
2.0000 0 0 0 0 0 0
Columns 8 through 14
0 0 0 1.0000 -1.5000 0.7500 -0.3750
Columns 15 through 21
0.1875 -0.0938 0.0469 -0.0234 0.0117 -0.0059 0.0029
zf =
-0.0015
0
y =
Columns 1 through 7
3
INFORME PRATICA N_1
2.0000 0 0 0 0 0 0
Columns 8 through 14
0 0 0 1.0000 -0.5000 0.2500 -0.1250
Columns 15 through 21
0.0625 -0.0313 0.0156 -0.0078 0.0039 -0.0020 0.0010
zf =
-1.0005
0
y =
Columns 1 through 7
3.5000 1.7500 1.1250 3.4375 6.2813 12.8594 25.5703
Columns 8 through 11
51.2148 102.3926 204.8037 409.5981
zf =
1.0e+03 *
-1.2288
0
LITERAL 5
5.- Utilizando Simulink implemente la ecuacion en diferencias del trabajo preparatorio literal 4.4 a.- Simule
desde Matlab el modelo implementado en Simulink si la entrada es una señal paso y condiciones iniciales
nulas b.- Simule desde Matlab el modelo implementado en Simulink para la señal de entrada paso y condi-
ciones iniciales indicadas en el literal 4.4
figure
imshow('imagen_1.png');
st=5;
sim('Literal_5');
figure
imshow('imagen_2.png');
Warning: Image is too big to fit on screen; displaying at 67%
4
INFORME PRATICA N_1
LITERAL 6
6.- Para la siguiente funcion de transferencia realizar un archivo .m que calcule la transformada z inversa
usando el metodo de la integral de inversion
num = [0 3 -9 0];
den = [1 -1.8 1.05 -0.2];
xz = tf(num,den,-1);
pole(xz);
xz1 = sum(num.*[z^3 z^2 z 1])/sum(den.*[z^3 z^2 z 1]);
syms z k
k1 = limit((z-0.8)*xz1*z^(k-1),z,0.8);
h = diff((z-0.5)^2*xz1*z^(k-1),2);
k2 = limit(h,z,0.5);
x = -200/3*4^k/(5^k)+20/9*(87*k+220+45*k^2)/(2^k)
x =
5
INFORME PRATICA N_1
1/2^k*(100*k^2 + (580*k)/3 + 4400/9) - (200*4^k/5^k)/3
BIBLIOGRAFIA
https://www.mathworks.com/matlabcentral/answers/243133-how-to-plot-signal-with-unit-step https://
ewh.ieee.org/r1/ct/sps/PDF/MATLAB/chapter3.pdf http://coecs.ou.edu/Joseph.P.Havlicek/ece3793/
matlab/ml01/ml01sol.pdf http://5minutosdematlab.blogspot.com/2011/09/ejemplos-de-codigo-para-for-
mar-senales.html https://www.mathworks.com/help/fixedpoint/ref/filter.html http://halweb.uc3m.es/esp/
Personal/personas/jmmarin/esp/PEst/temaintromatlab.pdf http://www.ceduvirt.com/resources/Con-
trol%20Digital%20con%20Matlab.pdf
Published with MATLAB® R2016b