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 个评论
Jan
2018-4-30
The question is not clear. What is the relation between the header and the code?
Ahmed Grera
2018-4-30
Ahmed Grera
2018-4-30
Jan
2018-4-30
Please take the time to ask the question more clearly.
回答(1 个)
Valeria Delgado
2020-10-27
0 个投票
% 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);
类别
在 帮助中心 和 File Exchange 中查找有关 Signal Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!