MATLAB Answers

How do filtic and filter functions work ?

63 views (last 30 days)
Ahmed Grera
Ahmed Grera on 29 Apr 2018
Answered: Valeria Delgado on 27 Oct 2020
% y[n]+y[n-1]-6y[n-2]=x[n]
% x[n]=8u[n]
% y[-1]=1, y[-2]=-1

  4 Comments

Show 1 older comment
Ahmed Grera
Ahmed Grera on 30 Apr 2018
solve this difference equation by filter and filtic function
Ahmed Grera
Ahmed Grera on 30 Apr 2018
And what is different between them ?
Jan
Jan on 30 Apr 2018
Please take the time to ask the question more clearly.

Sign in to comment.

Answers (1)

Valeria Delgado
Valeria Delgado on 27 Oct 2020
% try
%y[n]+y[n-1]-6y[n-2]=x[n]
% x[n]=8u[n]
% y[-1]=1, y[-2]=-1
%Para n=3
x=[8 8 8 8]
num=[1]
den=[1 1 -6]
ic=filtic(num,den,[1 -1]);
y=filter(num,den,x,ic);

  0 Comments

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!