⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test2.m

📁 给出了通信原理课程的相关实验程序源码
💻 M
字号:
close all;
clear all;
A=sqrt(2);
fc=10;
N_Sample=10;
N=10;
Ts=1;
dt=Ts/fc/N_Sample;
fm=1;
t=0:dt:N*Ts-dt;
lt=length(t);
g=sign(randn(1,N));
dd=NumExpand((g+1)/2,fc*N_Sample);
gt=ones(1,fc*N_Sample);
d_NRZ=conv(dd,gt);
mt=A*cos(2*pi*fm*t);
s_dsb=mt.*cos(2*pi*fc*t);
s_ook=d_NRZ(1:lt).*cos(2*pi*fc*t);
figure
subplot(411);
plot(t,mt);
title('基带信号波形');
subplot(412);
plot(t,s_dsb);
title('DSB信号波形');
subplot(413)
plot(t,d_NRZ(1:lt));
title('数字基带信号波形');
axis([0 N -2 2]);
subplot(414)
plot(t,s_ook);
title('2ASK信号波形');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -