フィルターのクリア

How to simulate the outage probability of user data rate versus signal to noise ratio?

7 ビュー (過去 30 日間)
Ahmed Nasr
Ahmed Nasr 2020 年 3 月 31 日
回答済み: Rik 2020 年 4 月 1 日
I have 4 users, and I want to simulate the outage probability which is the probability of the user data rate is less than the predefined threshold value i.e. if the threshold rate per user is = 0.512.
After changing the signal to noise ratio SNR from -20 dB to 30 dB, I obtain the rate matrix with dimensions (number of users × the length of SNR vector), where each element in this matrix represents the rate of certain user at specific SNR value as follows:
SNR_vector_dB=-20:10:30; %the SNR vector
R_th = 0.512; % the user data rate threshold value
% Rate matrix with dimensions (number of users =4 * the length of SNR vector=6)
R = [0.0021 0.0191 0.1466 0.7368 1.5617 1.9838; ...
0.0021 0.0191 0.1466 0.7368 1.5617 1.9838; ...
0.0041 0.0370 0.3190 0.9267 1.6591 2.1856; ...
0.0041 0.0370 0.3190 0.9267 1.6591 2.1856];
Can anyone help me in simulating the outage probability versus SNR?
  2 件のコメント
Rik
Rik 2020 年 4 月 1 日
I'm not sure what the goal is exactly. It looks like you need to do something like this:
Pout=mean(R<R_th,1);

サインインしてコメントする。

採用された回答

Rik
Rik 2020 年 4 月 1 日
Since that apparently was the solution, I'll post it as an answer:
SNR_vector_dB=-20:10:30; %the SNR vector
R_th = 0.512; % the user data rate threshold value
% Rate matrix with dimensions (number of users =4 * the length of SNR vector=6)
R = [0.0021 0.0191 0.1466 0.7368 1.5617 1.9838; ...
0.0021 0.0191 0.1466 0.7368 1.5617 1.9838; ...
0.0041 0.0370 0.3190 0.9267 1.6591 2.1856; ...
0.0041 0.0370 0.3190 0.9267 1.6591 2.1856];
Pout=mean(R<R_th,1);
plot(SNR_vector_dB,Pout)
ylabel('estimated outage probability')
xlabel('SNR (dB)')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTransmitters and Receivers についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by