clc;
clear all;
close all;
Ts = 1;
fc = 10;
N1 = 200;
N2 = 1000;
dt = Ts/N1;
t = 0:dt:(N2*Ts-dt);
d = sign(randn(1,N2));
st = rectpulse(d,N1);
bp = st.*cos(2*pi*fc*t);
figure;
subplot(2,1,1);
plot(t,bp);
axis([0,4*Ts,-1,1]);
clc;
clear all;
close all;
Ts = 1;
fc = 10;
N1 = 200;
N2 = 1000;
delay = 10;
dt = Ts/N1;
t = 0:dt:(N2*Ts-dt)+2*delay;
d = sign(randn(1,N2));
st = rcosflt(d,1/Ts,N1/Ts,'fir',1,delay);
bp = st'.*cos(2*pi*fc*t);
figure;
subplot(2,1,1);
plot(t,bp);
axis([10,20,-1.1,1.1]);
hold on
xlabel('t');
ylabel('lc¡ª¡ªbpsk of time');
grid on
NFFT = 2^16;
window = boxcar(length(bp));
[p,f] = periodogram(bp,window,NFFT,1/dt);
subplot(2,1,2)
plot(f,[p,f]);
axis([9,11,0,2]);
hold on
xlabel('t');
ylabel('lc¡ª¡ªbpsk');
grid on
NFFT = 2^16;
window = boxcar(length(bp));
[p,f] = periodogram(bp,window,NFFT,1/dt);
subplot(2,1,2)
plot(f,p);
axis([7,13,0,2]);
clc;
clear all;
close all;
Ts = 1;
fc = 10;
N1 = 200;
N2 = 1000;
delay = 10;
dt = Ts/N1;
t = 0:dt:(N2*Ts-dt)+2*delay;
d = sign(randn(1,N2));
st = rcosflt(d,1/Ts,N1/Ts,'fir',1,delay);
bp = st'.*cos(2*pi*fc*t);
figure;
subplot(2,1,1);
plot(t,bp);
axis([10,20,-1.1,1.1]);
hold on
xlabel('t');
ylabel('lc¡ª¡ªbpsk of time');
grid on
NFFT = 2^16;
window = boxcar(length(bp));
[p,f] = periodogram(bp,window,NFFT,1/dt);
subplot(2,1,2)
plot(f,[p,f]);
axis([9,11,0,2]);
hold on
xlabel('f');
ylabel('lc¡ª¡ªbpsk');
grid on
bpsk.zip_bpsk
版权申诉
99 浏览量
2022-09-19
20:13:02
上传
评论
收藏 2KB ZIP 举报
邓凌佳
- 粉丝: 65
- 资源: 1万+
最新资源
- 用python从excel读取数据并画图.zip
- 一个光立方项目,使用树莓派+74HC154芯片控制(20多种特效)
- 基于MATLAB口罩定位识别系统源码+GUI界面+详细文档+全部资料(高分项目).zip
- comfyui的电商工作流BrushNet-basic
- 基于pytorch+OpenCV的手写数字识别源码+使用文档+全部资料(优秀项目).zip
- 基于C++和Opencv的传统手势识别源码+使用文档+全部资料(优秀项目).zip
- 与我最爱的人度过的第二个情人节,花心思制作的一个网页送给她
- Python实战:高效读取Excel数据.zip
- 历史学习网站 JAVA+Vue.js+SpringBoot+MySQL
- 基于pytorch+OpenCV的手写数字识别源码+使用文档+全部资料(优秀项目).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈