资源简介
MATLAB通信技术的全部例程(全)包括WCDMA、ofdm、mimo、各种调制技术、编码技术等
代码片段和文件信息
%% 802.11b 1Mbps PHY link.
% This M code simulates DBPSK modulation and barker code spreading
% on a perfectly synchonized 802.11b link. It calculates the BER
% rate at each EsNo (EbNo) and plots the result.
%% Simulation parameters
% For each BER loop we specify the number of packets to transmit the packet size and
% the range of channel EsNo values to test.
EsNoRange=[0:2:10]; % Range of noice levels to calculate BER
NumPackets=2;
PacketSizeBytes=1024;
PacketSizeBits=PacketSizeBytes*8; % Here we ignore preamble and sync bits
clear BERResults;
%% System parameters and constants
% Specify a number of system constants.
% Spreading parameters
Barker=[1 -1 1 1 -1 1 1 1 -1 -1 -1]‘; % Barker sequence
SpreadingRate=length(Barker); % Spreading rate
% Upsampling rate
SamplesPerChip=8;
% Filter order and coefficients - root raised cosine
FilterOrder=40; % Set to multiple of SamplesPerChip to make delay calculation easy
h=firrcos(FilterOrder7e6.788e6‘rolloff‘‘sqrt‘FilterOrder/2kaiser(FilterOrder+11));
%% Delay calculation
% Calclate (specify) the net number of bits delay in the link due
% to the filtering.
%
% * samples_delay = 2 filters x (40 coeffs / 2) = 40 samples
% * chips_delay = sample_delay/SamplesPerChip = 40/8 = 5 chips
% * Must recalculate delay if you change any of these parameters
% We must delay the signal 6 more chips to align it with the 11 chip
% boundary. This results in an 11 chip delay or one symbol/bit delay.
% You must recalculate total and additional delay if you change any of these
% parameters
BitDelay=1;
ChipDelayAdd=6;
%% Main BER loop
% Calculates the BER for each EsNo level.
NumEsNos=length(EsNoRange);
disp(‘ ‘);disp(‘Start Simulation‘);
for EsNoIndex =1:NumEsNos
EsNo=EsNoRange(EsNoIndex);
disp([‘Simulating: EsNo=‘ num2str(EsNo) ‘dB‘]);
SNR=EsNo+10*log10(1/SpreadingRate)+10*log10(1/SamplesPerChip);
% Initialize system and simulation measurements state
% Bits
TotalBits=logical(0); % Bit count for BER calculation
ErrorBits=logical(0); % Error count for BER calculation
LastTxSymbol=1; % Set DBPKS Modulator state
LastRxSymbol=1; % Set DBPKS Demodulator state
% Filters
Rx_chips_delayed_store=zeros(ChipDelayAdd1);
Tx_bits_delayed_store=logical(zeros(BitDelay1));
Tx_Filter_State=h(1:end-1); % Fill filter with a +1 symbol
Rx_Filter_State=h(1:end-1); % Fill filter with a +1 symbol
% Main simulation loop
% Each packet is transmitted and the recieved bits compared with the
% transmitted bits to calculate the BER.
for Packet=1:NumPackets
% Construct frame of bits
Tx_bits=rand(PacketSizeBits1)>.5; % Random bits
% Modulate
Tx_bits_bp=(1-2*Tx_bits); % Convert to bipolar 01 --> 1 -1
Tx_symbols=LastTxSymbol*cumprod(Tx_bits_bp); % New DBPSK symbol = previous
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 38912 2005-02-16 17:17 Matlab_Wireless_Communications_example\WCDMA FDD Simuli
文件 1355279 2005-02-16 17:17 Matlab_Wireless_Communications_example\WCDMA FDD Simuli
文件 47104 2005-02-16 20:42 Matlab_Wireless_Communications_example\UWB polycycle\Desc
文件 3084 2005-02-16 20:43 Matlab_Wireless_Communications_example\UWB polycycle\gpolycycle1.m
文件 46080 2005-02-16 20:50 Matlab_Wireless_Communications_example\UWB monopulse1\Desc
文件 2350 2005-02-16 20:49 Matlab_Wireless_Communications_example\UWB monopulse1\UWB_monocycle1.m
文件 46592 2005-02-16 20:38 Matlab_Wireless_Communications_example\UWB Monocycle\Desc
文件 2571 2005-02-16 20:38 Matlab_Wireless_Communications_example\UWB Monocycle\UWB_monocycle1.m
文件 46080 2005-02-16 20:45 Matlab_Wireless_Communications_example\UWB li
文件 5633 2005-02-16 20:45 Matlab_Wireless_Communications_example\UWB li
文件 37376 2005-02-16 20:41 Matlab_Wireless_Communications_example\UWB channel model\Desc
文件 11051 2005-02-16 20:40 Matlab_Wireless_Communications_example\UWB channel model\UWB_Channel_IEEE_802_15_3a.zip
文件 46080 2005-02-16 20:54 Matlab_Wireless_Communications_example\UWB BPSK Fifth Order Derivative\Desc
文件 15374 2005-02-16 20:53 Matlab_Wireless_Communications_example\UWB BPSK Fifth Order Derivative\UWBBPSK3.m
文件 46080 2005-02-16 20:44 Matlab_Wireless_Communications_example\UWB BPSK Analysis\Desc
文件 17757 2005-02-16 20:44 Matlab_Wireless_Communications_example\UWB BPSK Analysis\UWBBPSK.m
文件 46080 2005-02-16 20:47 Matlab_Wireless_Communications_example\UWB Analysis\Desc
文件 10829 2005-02-16 20:47 Matlab_Wireless_Communications_example\UWB Analysis\UWB_analysis.m
文件 46080 2005-02-16 20:52 Matlab_Wireless_Communications_example\Uncorrelated Rayleigh fading channels\Desc
文件 2417 2005-02-16 20:52 Matlab_Wireless_Communications_example\Uncorrelated Rayleigh fading channels\modified_jakes.m
文件 39424 2005-02-16 17:31 Matlab_Wireless_Communications_example\Ultrawideband (UWB) multiband OFDM physical la
文件 116057 2005-02-16 17:29 Matlab_Wireless_Communications_example\Ultrawideband (UWB) multiband OFDM physical la
文件 47616 2005-02-16 20:26 Matlab_Wireless_Communications_example\Two Tone Test for LNA in RF Receiver\Desc
文件 45571 2005-02-16 20:26 Matlab_Wireless_Communications_example\Two Tone Test for LNA in RF Receiver\two_tone_lna.mdl
文件 46080 2005-02-16 20:56 Matlab_Wireless_Communications_example\Transmission line length formula for coaxial cable to an antenna\Desc
文件 296 2005-02-16 20:55 Matlab_Wireless_Communications_example\Transmission line length formula for coaxial cable to an antenna\xmitlnlength.m
文件 60416 2005-02-16 19:47 Matlab_Wireless_Communications_example\ToyFDTD (Example of the FDTD method with graphical output)\Desc
文件 29166 2005-02-16 19:45 Matlab_Wireless_Communications_example\ToyFDTD (Example of the FDTD method with graphical output)\ToyFDTD1.m
文件 49152 2005-02-16 17:48 Matlab_Wireless_Communications_example\Software Defined Radio\Desc
文件 28602 2005-02-16 17:48 Matlab_Wireless_Communications_example\Software Defined Radio\sdr_model.zip
............此处省略177个文件信息
- 上一篇:近邻传播聚类算法及matlab API
- 下一篇:基于Matlab的指纹图像特征提取
相关资源
- 基于Matlab的指纹图像特征提取
- 近邻传播聚类算法及matlab API
-
智能汽车 matlabsimuli
nk 模拟仿真技术 - 人脸识别及匹配的matlab实现
- matlab各种数据分析处理模型算法代码
-
BSM1建模指导及Simuli
nk程序 - 定量反馈控制QFTmatlab 工具箱
- matlab神经网络30个案例(文档+源代码
- mupad 教程
- 车牌识别与数据库管理系统
- RTW自动代码生成指导书
- [Matlab作品]matlab实现视频中动态目标跟
- matlab通信系统工具箱
- 各种最小二乘法汇总算例及MATLAB程序
- 一维热传导方程数值解法及matlab实现
-
详解MATLAB/Simuli
nk通信系统建模与仿 - DTI matlab 实现代码
-
50种电力电子基础拓扑Simuli
nk仿真 - LTE系统仿真平台_matlab源码
- 用Matlab将坐标添加到地图上
- 有限体积的MATLAB工具
- matlab 神经网络 遥感图像分类 可用程
-
Labview调用Matlab(用MATLAB sc
ript技术) - SPAMS 信号稀疏表示Matlab工具包windows版
- Matlab时频分析工具箱及仿真案例
- 基于matlab的运动目标检测源代码
- biot 双向介质正演模拟matlab程序
- 端元提取——顶点成分分析VCA的MATL
- 运动估计快速算法(TSSDS)matlab
- LSB信息隐藏实验 matlab代码及实验报告
评论
共有 条评论