These examples show to inverse a Z transform.
Problem: Given
Note, the MATLAB solution below uses the following function found in the toolbox that comes with the book Digital Signal Processing by Proakis and Ingle.
function [x,n] = impseq(n0,n1,n2)
% Generates x(n) = delta(n-n0); n1 <= n,n0 <= n2
% ----------------------------------------------
% [x,n] = impseq(n0,n1,n2)
%
if ((n0 < n1) | (n0 > n2) | (n1 > n2))
error('arguments must satisfy n1 <= n0 <= n2')
end
n = [n1:n2];
x = [(n-n0) == 0];
Problem: Given
Nasser M. Abbasi