% book : Signals and Systems Laboratory with MATLAB  
% authors : Alex Palamides & Anastasia Veloni
%
% 
%
% 	Problem 8- Discrete time system


% a)delay of two units 
num=[1 0 0];
den=[1 .2 .01];
Ts=0.1; 
H1=tf(num,den,Ts);
H2=tf(num,den,Ts,'inputdelay',2)

% b)impulse response of H1(s)
n=0:8;
h=dimpulse(num,den,n);
stairs(n,h)
legend('h[n]')

% c)impulse response of H2(s)
figure
num=1;
h2=dimpulse(num,den,n);
stairs(n,h2)
legend('h[n-2]');

Sable
github-repos/MATLAB/Sable-mcbench-benchmarks/mcbench-benchmarks-ba13b2f0296ef49491b95e3f984c7c41fccdb6d8/28762-signals-and-systems-laboratory-with-matlab-m-files/M-FILES/11/c1115h.m
mcbench-benchmarks
github-repos/MATLAB/Sable-mcbench-benchmarks
ba13b2f0296ef49491b95e3f984c7c41fccdb6d8