当前位置:网站首页>【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);边栏推荐
- PaddleHub人脸识别方案部署,将训练好的模型在pytchrom中进行部署应用
- B. All Distinct
- GUI 应用:socket 网络聊天室
- Deep parsing structured exception handling (SEH) - by Matt Pietrek
- RPC - grpc simple demo - learn / practice
- 【云原生】那些看起来很牛X,原理却很简单的一行代码
- [wechat applet] good looking carousel map component
- (pointer) write function void fun (int x, int *pp, int *n)
- 拼夕夕二面:说说布隆过滤器与布谷鸟过滤器?应用场景?我懵了。。
- 更优雅地远程操作服务器:Paramiko库的实践
猜你喜欢

Senior developers tell you, how to write excellent code?

附件五:攻击过程简报.docx

每日刷题记录 (十二)

Experience sharing of epidemic telecommuting | community essay solicitation

疫情远程办公经验分享| 社区征文

Instructions for LPC interrupt binding under ft2000+

rac删除损坏的磁盘组
![[Yugong series] go teaching course 001 in July 2022 - Introduction to go language premise](/img/f2/3b95f53d67cd1d1979163910dbeeb8.png)
[Yugong series] go teaching course 001 in July 2022 - Introduction to go language premise

在代码中使用度量单位,从而生活更美好

Statistical genetics: Chapter 3, population genetics
随机推荐
浅谈JVM的那些事
Self sharing of a graduate
A beautiful API document generation tool
Change the background color of Kivy tutorial (tutorial includes source code)
(pointer) write function void fun (int x, int *pp, int *n)
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
MySQL 索引和事务
Eig launched Grupo Cerro, a renewable energy platform in Chile
Balloon punching and Boolean operation problems (extremely difficult)
Kivy教程之 格式化文本 (教程含源码)
Solve the problem of failed to load property source from location 'classpathapplication YML 'problem
What is the difference between Western Digital Green disk, blue disk, black disk, red disk and purple disk
在代碼中使用度量單比特,從而生活更美好
Rhcsa 01 - create partitions and file systems
Intersection traffic priority, illustration of intersection traffic rules
Technology Management - learning / practice
Y55. Chapter III kubernetes from entry to proficiency -- HPA controller and metrics server (28)
Correct the classpath of your application so that it contains a single, compatible version of com. go
Formatted text of Kivy tutorial (tutorial includes source code)
STM32F1与STM32CubeIDE编程实例-74HC595驱动4位7段数码管