program_07_10.m

来自「自编的一些小波源程序,用MATLAB编的.希望对那些喜欢小波的人有所帮助.去解压」· M 代码 · 共 11 行

M
11
字号
% Program 7_10
% Design of Least-Squares Error Linear-Phase FIR Filters
%
N = input('Type in the order = ');
fpts = input('Type in the bandedge vector = ');
mag = input('Type in the magnitude value vector = ');
wt = input('Type in the weight vector = ');
b = firls(N,fpts,mag,wt);
[h,w] = freqz(b,1,256);
plot(w/pi,20*log10(abs(h)));grid;
xlabel('\omega/\pi'); ylabel('Gain, dB');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?