欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 人工智能 > 循环神经网络 >内容正文

循环神经网络

多载波瑞利信道matlab,瑞利信道仿真matlab.doc

发布时间:2024/8/1 循环神经网络 60 豆豆
生活随笔 收集整理的这篇文章主要介绍了 多载波瑞利信道matlab,瑞利信道仿真matlab.doc 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

瑞利信道仿真matlab.doc

实验一 瑞利信道的仿真

一 引言:瑞利信道介绍

瑞利衰落信道(Rayleigh fading channel)是一种无线电信号传播环境的统计模型。这种模型假设信号通过无线信道之后,其信号幅度是随机的,即“衰落”,并且其包络服从。一个随机二维向量的两个分量呈独立的、有着相同的方差的正态分布时,这个向量的模呈瑞利分布两个正交高斯噪声信号之和的包络服从瑞利分布。运用公式验证瑞利信道是符合瑞利分布的。

2、程序框图

3、源程序代码

% parameters setting

clc;

n 0:0.1:10;

sigma 1;

N 100000;

x randn 1,N ;

y randn 1,N ;

M x+j*y;

r sqrt sigma* x.^2+y.^2 ;

% q 1-exp - x.^2+y.^2 / 2*sigma*sigma ;

% step 0.1;

%range 0:step:3;

h hist r,n ;

fr_approx h/ 0.1*sum h ;

pijun sum r /N;

junfanghe r-pijun .^2;

junfang sum junfanghe /N;

u 0;

% w hist q,n ;

% fr_approx1 -w/ 0.1*sum w ;

% Calculate the CDF &Drawing

cdf raylcdf n,sigma ;

subplot 3,1,1 ;

plot n,cdf ;

% hold on;

% plot n,fr_approx1,'ko' ;

% Calculate the PDF & Drawing

title 'Normal cumulative distribution' ;

pdf raylpdf n,sigma ;

subplot 3,1,2 ;

plot n,pdf ;

title 'Normal probability density' ;

hold on;

plot n,fr_approx,'ko' ;

axis [0 8 0 1]

wucha fr_approx-pdf;

subplot 3,1,3 ;

plot n,wucha ;

title 'wucha' ;

% Generate the randoms & Calculate the mean, covariance

R raylrnd sigma,1,1000 ;

% subplot 3,1,3 ;

% plot n,R ;

% hole on;

E mean R ;

D cov R ;

四 实验结果与分析

N 10000时 N 1000时

瑞利数据的均值为:1.2547. 瑞利数据的均值为:1.2933.

方差为: 0.3924 方差为: 0.4617

瑞利分布的均值为:1.2353 瑞利分布的均值为:1.2288

方差为: 0.3924 方差为: 0.4215

均值和方差比较

仿真结果图像:

由图中可见,实际的概率密度函数在接近1处达到最高点,与理论图像相符,但由于模拟点数有限,实际的包络概率函数与理论的图像并不严格相像。

五 参考文献:

[1] /view/935573.htm

[2] /content/11/0214/20/座机电话号码_座机电话号码.shtml

总结

以上是生活随笔为你收集整理的多载波瑞利信道matlab,瑞利信道仿真matlab.doc的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。