% Program 3_12 % Power Series Expansion of a Rational z-Transform % % Read in the number of inverse z-transform coefficients % to be computed N = input('Type in the length of output vector = '); % Read in the numerator and denominator coefficients of % the z-transform num = input('Type in the numerator coefficients = '); den = input('Type in the denominator coefficients = '); % Compute the desired number of inverse transform % coefficients x = [1 zeros(1, N-1)]; y = filter(num, den, x); disp('Coefficients of the power series expansion'); disp(y)