A linear timeinvariant system is implemented in MATLAB by th
A linear time-invariant system is implemented in MATLAB by the following statement y=filter([1 -2 1], [1 -1.81 .81], x) where x is a vector of input samples. Write a MATLAB statement for generating necessary input vector x needed to compute samples of the impulse response h[n] of this system for 0 lessthanorequalto n lessthanorequalto 100. What is the system function H(z) of the system?
Solution
MATLAB statement:
x=linspace(0,5,100);
y=filter([1 -2 1],[1 -1.81 0.81],x);
stem(x)
hold on
stem(y,\'-r\')
hold off
![A linear time-invariant system is implemented in MATLAB by the following statement y=filter([1 -2 1], [1 -1.81 .81], x) where x is a vector of input samples. W A linear time-invariant system is implemented in MATLAB by the following statement y=filter([1 -2 1], [1 -1.81 .81], x) where x is a vector of input samples. W](/WebImages/24/a-linear-timeinvariant-system-is-implemented-in-matlab-by-th-1059121-1761553008-0.webp)