我想将Matlab代码转换为Python代码,以设计FIR滤波器。
%matplotlib notebook
import matplotlib.pyplot as plt
import numpy
import array as arr
sample_rate = 48000
nsamples = 256
F = [1,15] * 1000
A = [1,0.5]
t = [0,nsamples-1] / sample_rate
fvtool(fir_coeff, 'Fs', sample_rate)
filtered_signal = filter(fir_coeff, 1, signal)
我期望得到FIR过滤图。谁能给我一些帮助/建议?