%function z=capacity_plot_main(M,corr,value,XPD,alpha,output)
%**************************************************************************
%This program works with "capacity_plot_main.m" file.Figs
%2.6,2.7,2.9,2.12 are determined using this program. It operates on
%file "capacity_plot.m"
%z=capacity_plot_main(M,corr,value,ric,k,XPD,alpha,output)
%M -> number of antennas (M x M) system
%corr -> 1 if with correlation, 0 if uncorrelated (for a 2x2 system only)
%value -> correlation coefficient value from 0 ->1
%XPD -> 1 if antenna XPD is to be investigated, 0 if not (for a 2x2 system
%only)
%alpha -> XPD value
%output -> defined by 'erg' and 'out' for ergodic capacity or outage
%capacity respectively
%EXAMPLE: capacity_plot_main(2,1,0.5,1,0.5,'out')-> determines the outage
%capacity for a 2x2 system with a correlation of 0.5 and an XPD of 0.5
%**************************************************************************
%vary SNR through 20 dB
SNR=0:1:20;%SNR is signal-to-noise ratio in dBs
temp2=[];
temp21=[];
temp22=[];
for i=1:length(SNR)
temp1(i)=capacity_plot(SNR(i),2,1,0.99,0,0,'erg');% change this file to suit requirements e.g. capacity_rician,
temp11(i)= capacity_plot(SNR(i),2,1,0,0,0,'erg'); % capacity_water(for water-filling) etc.
temp12(i)= capacity_plot(SNR(i),2,1,0.8,0,0,'erg');
temp2=[temp2 temp1(i)];
temp21=[temp21 temp11(i)];
temp22=[temp22 temp12(i)];
temp1(i)=0;
temp11(i)=0;
temp12(i)=0;
end
plot(SNR,temp2,'-+',SNR,temp21,'->',SNR,temp22,'-o');
grid;
%plot routines follow. These will change depending upon the type of plot.
%The following routines are based on the given example above
xlabel('SNR');
ylabel('Capacity (Bits/sec)');
legend('完全相关','完全不相关','部分相关',0);
%title('Outage Capacity Variation with SNR for Corr = 0.5 and XPD = 0.5');
没有合适的资源?快使用搜索试试~ 我知道了~
space-time--codes-3.rar_Time
共13个文件
m:5个
bmp:4个
fig:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 37 浏览量
2022-07-14
21:56:13
上传
评论
收藏 66KB RAR 举报
温馨提示
space time mimo codes
资源推荐
资源详情
资源评论
收起资源包目录
space-time--codes-3.rar (13个子文件)
space time codes 3
2_3.fig 7KB
capacity_plot_main.m 2KB
2_31.bmp 226KB
2
UT_IT_MIMO_System.m 2KB
3_2.bmp 242KB
averg_allo.m 445B
Thumbs.db 13KB
WaterFilling_alg.m 779B
3_2.fig 8KB
3_21.bmp 226KB
capacity_plot.m 1KB
Thumbs.db 15KB
2_3.bmp 247KB
共 13 条
- 1
资源评论
JaniceLu
- 粉丝: 79
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功