MATLAB: How to compute impulse response fir How can I calculate the impulse response for the following equation: y[n]=-5*X[n]+2*X[n-1]-5*X[n-2]+2*X[n-3] Best Answer You can use the filter function with the coefficients as an input argument. Related SolutionsMATLAB: Calculating the impulse response If you have a discrete filter and want to compute and plot the impulse response, use the impz function. For the transfer function, use the freqz function. MATLAB: How to calculate the impulse response f=100;% frequanecyfs=1000;n=[1:1000]*f/fs;u=ones(n,1)x(n)=2*cos(0.5*pi*n).u(n);% ~ (check indexes im not sure ..)y(n)=x(n(3:1000))+x(n(2:999))+x((1:998)) Related QuestionHow to plot impulse responseHow to calculate and plot impulse responseNeed help to write a program to plot a magnitude response and phase response of a signal x (n) = a^n*u(n) .a) using loop b) using MATLAB command for DFT.How to obtain an Impulse Response
Best Answer