1 Star 1 Fork 0

Jing/DSP

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
convfir.m 285 Bytes
一键复制 编辑 原始数据 按行查看 历史
jing 提交于 2022-10-01 12:36 . first
clear
N = 320;
Fs = 500;
T = 1/Fs;
t = 0:T:(N-1)*T;
x = sin(2*pi*10*t)+sin(2*pi*20*t)+sin(2*pi*30*t+sin(2*pi*40*t));
subplot(2,1,1)
stem(t,x,'.')
wc = 18*2/Fs;
Bt = 6*2/Fs;
N = ceil(1.8/Bt);
N = N+mod(N+1,2);
h = fir1(N-1,wc,'low',boxcar(N));
y = conv(h,x);
subplot(2,1,2)
stem(y,'.');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/menghuidream/DSP.git
git@gitee.com:menghuidream/DSP.git
menghuidream
DSP
DSP
master

搜索帮助

Cb406eda 1850385 E526c682 1850385