How do filtic and filter functions work ?

% y[n]+y[n-1]-6y[n-2]=x[n]
% x[n]=8u[n]
% y[-1]=1, y[-2]=-1

4 Kommentare

Jan
Jan am 30 Apr. 2018
The question is not clear. What is the relation between the header and the code?
Ahmed Grera
Ahmed Grera am 30 Apr. 2018
solve this difference equation by filter and filtic function
Ahmed Grera
Ahmed Grera am 30 Apr. 2018
And what is different between them ?
Jan
Jan am 30 Apr. 2018
Please take the time to ask the question more clearly.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Valeria Delgado
Valeria Delgado am 27 Okt. 2020

0 Stimmen

% 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);

Kategorien

Mehr zu Signal Processing Toolbox finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 29 Apr. 2018

Beantwortet:

am 27 Okt. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by