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

📄 simalamouti.m

📁 空时分集Alamouti方案的matlab程序
💻 M
字号:
%===================================================================
%10/30/04 Sun Jie-ting ECUST
%===================================================================
% SimAlamouti.m
% =============
% Description: This m-file compares the SER performance of Alamouti
%              space-time coding with 1 receive antenna with the SER of 2
%              receive antennas scheme
% Usage:  Alamouti(max_snr,max_err_symbol,symbol_per_frame)
% Inputs:
%         max_snr: simulation from 0 to max_snr
%         max_err_symbol: the simulation will stop when the number of
%                         received error symbols exceeds max_err_symbol
%         symbol_per_frame: the number of symbols to transmit in a data
%                            frame and we assume the channel fading
%                            coefficients will keep the same the data
%                            frame transmitting period.Becasue of 2 Tx
%                            antenna, symbol_per_frame must be even
% Outputs:
%         no output data
% ======================================================================
function SimAlamouti(max_snr,max_err_symbol,symbol_per_frame)
ser_1R = Alamouti(1,max_snr,max_err_symbol,symbol_per_frame);
ser_2R = Alamouti(2,max_snr,max_err_symbol,symbol_per_frame);
semilogy(0:max_snr,ser_1R,'-',0:max_snr,ser_2R,':');
xlabel('SNR');
ylabel('Symbol Error Ratio(SER)');
legend('1 Receive antenna','2 receive antennas');

⌨️ 快捷键说明

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