📄 signals1.m
字号:
% Butterworth Low Pass Filter
clc;
clear all;
close all;
f1 = input ('Enter the pass band freq : ');
f2 = input ('Enter the stop band freq : ');
fs = input ('Enter the sampling freq : ');
k1 = input ('Enter the pass band attn. : ');
k2 = input ('Enter the stop band attn. : ');
w1 = 2 * f1/fs;
w2 = 2 * f2/fs;
[n,wn] = buttord (w1,w2,k1,k2);
[b,a] = butter(n,wn);
figure ;
subplot (4,2,1);
freqz(b,a);
title ('Butter Worth LPF');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -