⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filter.m

📁 基于Matlab编写的用于对数据进行插值分析和傅立叶变换的程序
💻 M
字号:
clear all; 
clc

N=40;%滤波器阶数 
W1=0.1; 
W2=0.2;%通带W1<W<W2 
B=fir1(N,[W1 W2],hanning(N+1)); 
x=0:0.001:1; 
y=sin(x)+sin(30*x)+sin(100*x)+sin(1000*x)+sin(0.1*x); 
y1=filter(B,1,y);
figure
subplot(211)
plot(x,y,'r'); 
subplot(212)
plot(x,y1)

⌨️ 快捷键说明

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