91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 5KB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發布日期: 2021-04-17
  • 語言: Matlab
  • 標簽: ofdm??頻譜感知??

資源簡介

基于OFDM信號的能量頻譜感知算法仿真代碼,認知無線電,頻譜感知法 ,

資源截圖

代碼片段和文件信息

clear?all;
clc;





%--------1---------2---------3---------4---------5---------6---------7---------8
%?OFDM?Simulation
%
%????-?ECE?5664?Project
%????-?Erich?Cosby
%????-?December?4?2001
%????-?Virginia?Tech?Nothern?Va.?Center
%
%?based?on?the?matlab?work?of?Eric?Lawrey?in?his?1997?BSEE?thesis
%?“The?suitability?of?OFDM?as?a?modulation?(調制)technique?for?wireless?
%??telecommunications?with?a?CDMA?comparison“?
%?refer?to?www.eng.jcu.edu.au/eric/thesis/Thesis.htm.
%
%

%
%?Basic?OFDM?system?parameters
%??-?choice?of?defaults?or?user?selections
%
fprintf?(‘OFDM?Analysis?Program\n\n‘);
defaults?=?input(‘To?use?default?parameters?input?“1“?otherwise?input?“0“:??‘);%default??默認
%
if?defaults?==?1
????IFFT_bin_length?=?1024;?????%?IFFT?bin?count?for?Tx?FFT?bin?count?for?Rx
????carrier_count?=?200;????????%?number?of?carriers
????bits_per_symbol?=?2;????????%?bits?per?symbol
????symbols_per_carrier?=?50;???%?symbols?per?carrier
????SNR?=?10;???????????????????%?channel?signal?to?noise?ratio?(dB)???????????????????????????
else
????IFFT_bin_length?=?input(‘IFFT?bin?length?=?‘);
????carrier_count?=?input(‘carrier?count?=?‘);
????bits_per_symbol?=?input(‘bits?per?symbol?=?‘);
????symbols_per_carrier?=?input(‘symbols?per?carrier?=‘);
????SNR?=?input(‘SNR?=?‘);
end
%
%?Derived?parameters??導出參數
%
baseband_out_length?=??carrier_count?*?symbols_per_carrier?*?bits_per_symbol;?
carriers?=?(1:carrier_count)?+?(floor(IFFT_bin_length/4)?-?floor(carrier_count/2));%???????
conjugate_carriers?=?IFFT_bin_length?-?carriers?+?2;%????????????????????????
%
%
%--------1---------2---------3---------4---------5---------6---------7---------8
%
%?TRANSMIT?>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
%
%
%?Generate?a?random?binary?output?signal:生成一個隨機的二進制輸出信號
%???-?a?row?of?uniform?random?numbers?(between?0?and?1)?rounded?to?0?or?1
%???-?this?will?be?the?baseband?signal?which?is?to?betransmitted.基帶信號,并作為發送信號
%
baseband_out?=?round(rand(1baseband_out_length));
%
%?Convert?to?‘modulo(模)?N‘?integers?where???????N?=?2^bits_per_symbol????轉換為“模N‘個整數,其中N=2^?bits_per_symbol
%???-?this?defines?how?many?states?each?symbol?can?represent???????????????這定義了每個符號可以有多少個狀態
%???-?first?make?a?matrix?with?each?column?representing?consecutive?bits??首先,設定一個每列代表連續位的矩陣
%?????from?the?input?stream?and?the?number?of?bits?in?a?column?equal?to?the輸入流和比特量等于每碼元的比特數的列數
%?????number?of?bits?per?symbol
%???-?then?for?each?column?multiply?each?row?value?by?the?power?of?2?that?然后,對于每列,它代表由2的冪乘以每一行的值,并加上所有行
%?????it?represents?and?add?all?the?rows
%???-?for?example:??input?0?1?1?0?0?0?1?1?1?0??重要例子。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
%???????????????????bits_per_symbol?=?2
%???????????????????convert_matrix?=?0?1?0?1?1??上下兩個2進制構成一個符號??也即input輸入的前后連個構成
%????????????????????????????????????1?0?0?1?0
%
%???????????????????modulo_baseband?=?1?2?0?3?2
%
convert_matrix?=?reshape(baseband_out?bits_per_sy

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????14758??2014-04-25?08:59??energy_SNR.m

評論

共有 條評論