matlab中的filter函数:
y = filter(b,a,x)
python实现matlab中的filter函数
def filter_matlab(b,a,x):
y = []
y.append...,-3.5,0.5]
a = [1,-1.5,0.25]
x = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
y = filter_matlab...(b,a,x)
函数的结果和matlab的filter函数结果一致,为
[8,
24.5,
52.25,
94.75,
156.5625,
243.65625,
363.84375,...6291.619323730469,
8342.533584594727,
11033.395545959473,
14561.959922790527,
19187.090997695923]
以上就是本文的全部内容...,希望对大家的学习有所帮助。