%***********?‾????main.m***********
clear
clc
%N=input('walsh???℅??N=');
N=16;
for i=1:4
switch i
case 1
%nA=input('???∫A????nA=');
nA=fix(unifrnd(0,255));%?迆?迆????℅??????迆????
m=i+1;
figure(1);
[nA_2,ChannelA]=send_module(nA,N,m);
case 2
%nB=input('???∫B????nB=');
nB=fix(unifrnd(0,255));%?迆?迆????℅??????迆????
m=i+1;
figure(2);
[nB_2,ChannelB]=send_module(nB,N,m);
case 3
%nC=input('???∫C????nC=');
nC=fix(unifrnd(0,255));%?迆?迆????℅??????迆????
m=i+1;
figure(3);
[nC_2,ChannelC]=send_module(nC,N,m);
case 4
%nD=input('???∫D????nD=');
nD=fix(unifrnd(0,255));%?迆?迆????℅??????迆????
m=i+1;
figure(4);
[nD_2,ChannelD]=send_module(nD,N,m);
otherwise
disp('error');
end
i=i+1;
end
figure(5);
Channel=ChannelA+ChannelB+ChannelC+ChannelD;
q=1:1:128*8;
subplot(2,1,1);
plot(q,Channel);
title('????????')
axis([1 1024 -5 5])
snr=0000.1;
y = awgn(Channel,snr,'measured') ;
subplot(2,1,2);
plot(q,y);
axis([1 1024 -15.5 15.5])
title('????????')
for i=1:4;
switch i
case 1
m=i+1;
figure(6);
receiveA=receive_module(N,y,m);
case 2
m=i+1;
figure(7);
receiveB=receive_module(N,y,m);
case 3
m=i+1;
figure(8);
receiveC=receive_module(N,y,m);
case 4
m=i+1;
figure(9);
receiveD=receive_module(N,y,m);
otherwise
disp('error');
end
i=i+1;
end
%???赤?????‾
send=[nA_2;nB_2;nC_2;nD_2;]
receive=[receiveA;receiveB;receiveC;receiveD;]
count=0;
for i=1:32
if send(i)~=receive(i)
count=count+1;
end
end
disp('?車??????');
海神之光
- 粉丝: 5w+
- 资源: 6477
最新资源
- 多线框物体架子检测28-YOLO(v5至v11)、COCO、CreateML、Paligemma、VOC数据集合集.rar
- Python快速排序算法详解及优化策略
- 政务大数据资源平台设计方案
- 完结17章SpringBoot3+Vue3 开发高并发秒杀抢购系统
- 基于MATLAB的信号处理与频谱分析系统
- 人大金仓(KingBase)备份还原文档
- SecureCRT.9.5.1.3272.v2.CN.zip
- CHM助手:制作CHM联机帮助的插件使用手册
- 大数据硬核技能进阶 Spark3实战智能物业运营系统完结26章
- Python个人财务管理系统(Personal Finance Management System)
- 多边形框架物体检测18-YOLO(v5至v11)、COCO、CreateML、TFRecord、VOC数据集合集.rar
- 虚拟串口VSPXD软件(支持64Bit)
- 机器学习金融反欺诈项目数据
- GAMMA软件新用户手册中文版
- CIFAR-10 64*64训练测试数据集
- cd35f259ee4bbfe81357c1aa7f4434e6.mp3
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
- 1
- 2
前往页