Table of Contents
LITERAL 1 ....................................................................................................................... 1
LITERAL 2 ....................................................................................................................... 1
LITERAL 3 ....................................................................................................................... 2
LITERAL 4 ....................................................................................................................... 3
LITERAL 5 ....................................................................................................................... 4
LITERAL 6 ....................................................................................................................... 5
BIBLIOGRAFIA ................................................................................................................. 6
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 =
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 =
ans =
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];
y =
Columns 1 through 7
2.0000 0 0 0 0 0 0
Columns 8 through 14
Columns 15 through 21
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
Columns 15 through 21
zf =
-1.0005
0
y =
Columns 1 through 7
Columns 8 through 11
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');
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);
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
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