資源簡介
MATLAB通信技術(shù)的全部例程(全)包括WCDMA、ofdm、mimo、各種調(diào)制技術(shù)、編碼技術(shù)等

代碼片段和文件信息
%%?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的指紋圖像特征提取
評論
共有 條評論