当前位置:网站首页>【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);边栏推荐
- Kivy教程之 自定义字体(教程含源码)
- 【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
- 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
- 沃博联结束战略评估,决定保留表现优异的博姿业务
- 关闭的数据能用dbca删除吗? 能
- STM32F1与STM32CubeIDE编程实例-74HC595驱动4位7段数码管
- 6-4 vulnerability exploitation SSH banner information acquisition
- 附件五:攻击过程简报.docx
- Dp83848+ network cable hot plug
- Test cs4344 stereo DA converter
猜你喜欢
随机推荐
Deep parsing structured exception handling (SEH) - by Matt Pietrek
YoloV6实战:手把手教你使用Yolov6进行物体检测(附数据集)
The five pictures tell you: why is there such a big gap between people in the workplace?
Longest increasing subsequence problem (do you really know it)
在代碼中使用度量單比特,從而生活更美好
Developing mqtt access program under QT
Cmake compilation option setting in ros2
Sample template of software design document - learning / practice
Kivy tutorial custom fonts (tutorial with source code)
EIG在智利推出可再生能源平台Grupo Cerro
Senior developers tell you, how to write excellent code?
Definition of DCDC power supply current
【安全攻防】序列化与反序列,你了解多少?
Architecture practice camp - graduation project of module 9 of phase 6
Annexe VI: exposé sur les travaux de défense. Docx
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
[cloud native] those lines of code that look awesome but have a very simple principle
MAUI 入门教程系列(5.XAML及页面介绍)
How to view installed r packages in R language
First knowledge of batch processing
![leetcode:1314. Matrix area and [2D prefix and template]](/img/b4/2c9e66c8eafe1db2a3d07e861494e0.png)








