当前位置:网站首页>【MATLAB】通信信号调制通用函数 — 带通滤波器
【MATLAB】通信信号调制通用函数 — 带通滤波器
2022-07-04 03:55:00 【嵌入式职场】
目录
带通滤波器
function [t,st] = bpf(f,sf,B1,B2)
%This function filter an input at frequency domain by an ideal bandpass filter
%Inputs:
% f: frequency samples
% sf: input data spectrum samples
% B1: bandpass's lower frequency
% B2: bandpass's higher frequency
%Outputs:
% t: time samples
% st: output data's time samples
df = f(2)-f(1);
T = 1/df;
hf = zeros(1,length(f));
bf = [floor(B1/df ): floor(B2/df)] ;
bf1 = floor(length(f)/2) + bf;
bf2 = floor(length(f)/2) - bf;
hf(bf1)=1;
hf(bf2)=1;
yf = hf.*sf;
[t,st] = F2T(f,yf);
st = real(st);
边栏推荐
- 5张图告诉你:同样是职场人,差距怎么这么大?
- The paddlehub face recognition scheme is deployed, and the trained model is deployed and applied in pytchrom
- Leetcode 121 best time to buy and sell stock (simple)
- Annex VI: defense work briefing docx
- 【Go】数据库框架gorm
- MIN_ RTO dialog
- Kivy tutorial custom fonts (tutorial with source code)
- Network - vxlan
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- 技术管理 - 学习/实践
猜你喜欢
深入解析结构化异常处理(SEH) - by Matt Pietrek
5张图告诉你:同样是职场人,差距怎么这么大?
每日刷题记录 (十二)
技术管理 - 学习/实践
Experience sharing of epidemic telecommuting | community essay solicitation
多位科技公司创始人向Entrepreneur First提供高达1.58亿美元的C轮融资,协助其投资下一代全球创新者
拼夕夕二面:说说布隆过滤器与布谷鸟过滤器?应用场景?我懵了。。
RPC - gRPC简单的demo - 学习/实践
Flutter 调用高德地图APP实现位置搜索、路线规划、逆地理编码
Main applications of TDK lambda power supply
随机推荐
B. All Distinct
Qt QTableView数据列宽度自适应
Wobo Union ended its strategic evaluation and decided to retain Bozi's business with excellent performance
Deep parsing structured exception handling (SEH) - by Matt Pietrek
MySQL JDBC编程
Unity Resource path
疫情远程办公经验分享| 社区征文
Zhengzhou zhengqingyuan Culture Communication Co., Ltd.: seven marketing skills for small enterprises
最长递增子序列问题(你真的会了吗)
Rhcsa 06 - suid, sgid, sticky bit (to be added)
拼夕夕二面:说说布隆过滤器与布谷鸟过滤器?应用场景?我懵了。。
新手找陪驾要注意什么
Rhcsa 04 - process management
qt下开发mqtt的访问程序
牛客小白月赛49
The "functional art" jointly created by Bolang and Virgil abloh in 2021 to commemorate the 100th anniversary of Bolang brand will debut during the exhibition of abloh's works in the museum
How do good test / development programmers practice? Where to go
【云原生】那些看起来很牛X,原理却很简单的一行代码
Change the background color of Kivy tutorial (tutorial includes source code)
Asahi Kasei participated in the 5th China International Import Expo (5th ciie) for the first time