MATLAB程序:S-V信道模型

article/2025/10/9 9:59:05

绘制Saleh-Valenzuela信道模型

% plot_SV_model_ct.m%MIMO-OFDM Wireless Communications with MATLAB㈢   Yong Soo Cho, Jaekwon Kim, Won Young Yang and Chung G. Kang
%?2010 John Wiley & Sons (Asia) Pte Ltdclear, close all
b002=1; % Power of 1st ray of 1st cluster 
N=1000 ; % Number of channels
Lam=0.0233; lambda=2.5;
Gam=7.4; gamma=4.3;
sigma_x=3; % Standard deviation of log-normal shadowing
subplot(221)
t1=0:300; p_cluster=Lam*exp(-Lam*t1); % ideal exponential pdf
h_cluster=exprnd(1/Lam,1,N);                                                 % # of random number are generated
[n_cluster x_cluster]=hist(h_cluster,25); % gets distribution
plot(t1,p_cluster,'k'), hold on
plot(x_cluster,n_cluster*p_cluster(1)/n_cluster(1),'k:');%plotting 
legend('Ideal','Simulation')
title(['Distribution of Cluster Arrival Time, \Lambda=', num2str(Lam)])
xlabel('T_m-T_{m-1} [ns]'), ylabel('p(T_m|T_{m-1})')
subplot(222)
t2=0:0.01:5; p_ray=lambda*exp(-lambda*t2); % ideal exponential pdf
h_ray=exprnd(1/lambda,1,1000); % # of random number are generated
[n_ray,x_ray]=hist(h_ray,25); % gets distribution
plot(t2,p_ray,'k'), hold on
plot(x_ray,n_ray*p_ray(1)/n_ray(1),'k:');   % plotting graph
legend('Ideal','Simulation')
title(['Distribution of Ray Arrival Time, \lambda=', num2str(lambda)])
xlabel('\tau_{r,m}-\tau_{(r-1),m} [ns]')
ylabel('p(\tau_{r,m}|\tau_{(r-1),m})')
subplot(223)
[h,t,t0,np]= SV_model_ct(Lam,lambda,Gam,gamma,N,b002,sigma_x);
stem(t(1:np(1),1),abs(h(1:np(1),1)),'ko');
title('Generated Channel Impulse Response')
xlabel('delay[ns]'), ylabel('Magnitude')
subplot(224)
X=10.^(sigma_x*randn(1,N)./20);
[temp,x]=hist(20*log10(X),25);
plot(x,temp,'k-'), axis([-10 10 0 120])
title(['Log-normal Distribution, \sigma_X=',num2str(sigma_x),'dB'])
xlabel('20*log10(X)[dB]'), ylabel('Occasion')
function [h,t,t0,np]=SV_model_ct(Lam,lam,Gam,gam,num_ch,b002,sdi,nlos)
% S-V channel model
% Input 
%  Lam      : Cluster arrival rate in GHz (avg # of clusters per nsec)
%  lam      : Ray arrival rate in GHz (avg # of rays per nsec)
%  Gam      : Cluster decay factor (time constant, nsec)
%  gam      : Ray decay factor (time constant, nsec)
%  num_ch   : number of random realizations to generate
%  b002     : power of first ray of first cluster
%  sdi      : Standard deviation of log-normal shadowing 
%                of entire impulse  response [dB]
%  nlos     : Flag to specify generation of Non Line Of Sight channels
% Output 
%  h: a matrix with num_ch columns, each column 
%      having a random realization of channel model (impulse response)
%  t: organized as h, but holds the time instances (in nsec) of the 
%      paths whose signed amplitudes are stored in h
%  t0: the arrival time of the first cluster for each realization
%  np: the number of paths for each realization.
% Thus, the k'th realization of the channel impulse response is the 
% sequence of (time,value) pairs given by(t(1:np(k),k),h(1:np(k),k))%MIMO-OFDM Wireless Communications with MATLAB㈢   Yong Soo Cho, Jaekwon Kim, Won Young Yang and Chung G. Kang
%?2010 John Wiley & Sons (Asia) Pte Ltdif nargin<8, nlos=0;  end     % LOS environment
if nargin<7, sdi=0; end % 0dB
if nargin<6, b002=1; end  %  power of first ray of first cluster
h_len=1000; %There must be a better estimate of # of paths than???
for k=1:num_ch             % loop over number of channelstmp_h = zeros(h_len,1);  tmp_t = zeros(h_len,1);if nlos,  Tc = exprnd(1/Lam); % First cluster random arrival ???else     Tc = 0;         % First cluster arrival occurs at time 0endt0(k) = Tc;path_ix = 0;while (Tc<10*Gam)  % cluster loop    % Determine Ray arrivals for each clusterTr=0;  %1st ray arrival defined to be time 0 relative to clusterwhile (Tr<10*gam) % ray loopbrm2 = b002*exp(-Tc/Gam)*exp(-Tr/gam);  % ray power (2.20)r = sqrt(randn^2+randn^2)*sqrt(brm2/2); % rayleigh distributed mean power pow_bklh_val=exp(j*2*pi*rand)*r;  % uniform phase      path_ix = path_ix+1;      % row index of this raytmp_h(path_ix) = h_val;  tmp_t(path_ix) = Tc+Tr;  % time of arrival of this rayTr = Tr + exprnd(1/Lam); % (2.16) ???endTc = Tc + exprnd(1/lam); % (2.17) ???endnp(k)=path_ix;  % number of rays (or paths) for this realization[sort_tmp_t,sort_ix] = sort(tmp_t(1:np(k)));  %in ascending ordert(1:np(k),k) = sort_tmp_t;h(1:np(k),k) = tmp_h(sort_ix(1:np(k)));   % now impose a log-normal shadowing on this realizationfac = 10^(sdi*randn/20)/sqrt(h(1:np(k),k)'*h(1:np(k),k));h(1:np(k),k) = h(1:np(k),k)*fac; % (2.21)
end


http://chatgpt.dhexx.cn/article/xUXLkOhS.shtml

相关文章

2信道模型

信道模型 1概述1.1调制信道模型&#xff1a;1.2信道参数 2不考虑空间特性的信道模型2.1基本特性2.1.1多径2.1.2多普勒频移2.1.3快慢衰落 2.2传播预测模型2.3信道冲击响应2.3.1多普勒功率谱cost 2072.3.2多径时延的主要参数 2.4信道响应模型理论(这个part有点看不太懂) 3考虑空间…

两径信道与指数信道模型

产生一个两径信道和一个指数衰减的多径信道 clear,clf scale 1e-9;%纳秒量级 Ts 10*scale;%采样时间间隔为10ms&#xff0c;在这个程序中这个量也为指数信道路径间隔 t_rms 30 * scale;%RMS时延扩展为30ms num_ch 10000;%仿真信道个数 %两径信道模型 %产生并绘制理想的两径…

WINNER II信道模型与WINNER+信道模型概述

目录 1.WINNER II 2.WINNER 目前信道模型主要分为准确信道模型、随机信道模型、统计信道模型。其中随机信道模型集和其他两种模型的优点&#xff0c;成为主流的信道模型。随机模型中基于几何统计的随机信道模型(Geometry-based Stochastic Channel Models, GSCM)由于具有复杂…

无线信道模型

目录 1 信道 无线信道天线增益 2 信道模型2-1 瑞利衰落信道模型2-2 莱斯衰落信道模型2-3 AWGN信道模型2-4 适用条件对比 3 无线信道中的衰落3-1 大尺度衰落与小尺度衰落3-2 路径损耗3-3 多径传播3-4 四种小尺度衰落3-5 阴影效应 4 Hata模型4-1 简介4-2 适用条件4-3 传播损耗公式…

室外信道模型

一、FWGN信道模型 FWGN模型是最流行的户外信道模型之- - 。Clarke/Gans 模型是-种基本的 FWGN模型&#xff0c;根据如何在时域或频域实现多普勒滤波器&#xff0c;可以将 Clarke/Gans 模型修改为其他各种类型。 1. Clarke/Gans 模型 特点&#xff1a;移动台周围的散射分量是…

数字通信第六章——信道模型和信道容量

一、信道模型 描述信道常用的三个参数&#xff1a;输入X&#xff1b;输出Y&#xff1b;输入与输出间的条件概率 P ( y i ∣ x i ) P(y_i|x_i) P(yi​∣xi​)。如果 P ( y ∣ x ) ∏ i 1 m P ( y i ∣ x i ) P(y|x)\prod_{i1}^mP(y_i|x_i) P(y∣x)∏i1m​P(yi​∣xi​)&#…

通信原理(2)—— 信道模型、特性、噪声(多径)、容量(香农公式)

一、信道概述 1. 信道&#xff1a;以传输媒质为基础的信号通道。 分类 狭义信道&#xff1a;根据传输媒质&#xff1a;有线&#xff08;恒参信道&#xff09;/无线&#xff08;随参信道&#xff09;。广义信道&#xff1a;调制信道/编码信道。 信道的特性 不同的传输媒质具有…

通信原理——信道

文章目录 1 信道的数学模型1.1 调制信道模型1.2 编码信道模型 2 信道特性对信号传输的影响3 信道中噪声4 信道容量4.1 离散信道容量4.2 连续信道容量 1 信道的数学模型 一般来说&#xff0c;对于信道有两种不同的定义&#xff0c;调制信道和编码信道&#xff0c;如下图所示&am…

移动通信基础(4)信道模型

目录 有线信道 无线信道 衰减作用 1.路径损耗 2.阴影衰落 3. 小尺度衰落 多径效应 1.瑞利/莱斯衰落 2.时延扩展 3.相干带宽—频率选择性衰落 时变性 1.多普勒频移 2.多普勒扩展 3.相干时间 各种信道模型 AWGN信道 瑞利多径信道 多普勒扩展信道 复合信…

计算机四级信息安全工程师 题纲

# 信息安全工程师考试由操作系统和计算机网络两部分组成&#xff0c;各部分占分50%&#xff0c;包括单选和多选&#xff0c;单选30分&#xff0c;多选20分&#xff0c;需两部分均考到30分且已经拿到计算机三级相应证书才可拿到四级证书。 考试大纲由此进&#xff1a;http://n…

计算机四级网络工程师(计算机网络多选)- 知识点

计算机四级网络工程师&#xff08;操作系统单选&#xff09; 计算机四级网络工程师&#xff08;操作系统多选&#xff09; 计算机四级网络工程师&#xff08;计算机网络单选&#xff09; 计算机四级网络工程师&#xff08;计算机网络多选&#xff09; 一、网络 1、网络技术相关…

计算机四级网络工程师(计算机网络单选)- 知识点

计算机四级网络工程师&#xff08;操作系统单选&#xff09; 计算机四级网络工程师&#xff08;操作系统多选&#xff09; 计算机四级网络工程师&#xff08;计算机网络单选&#xff09; 计算机四级网络工程师&#xff08;计算机网络多选&#xff09; 一、Ethernet 1、Etherne…

全国计算机四级薪资,全国计算机四级通过率有多少

计算机四级网络工程师通过率 计算机四级网络工程师通过率整理资料:大概60% 上次大概有60%,因为第一次敢参加考试的都是有基础的考生。 四级网工跟三级网络完全是两个级别的考试。三级网络:从知识的难度来说,完全是网络这一专业里最皮毛的东西。连可变长子网掩码都没有涉及。…

[转]计算机四级网络工程师思维导图--计算机网络部分

此文在我的博客原文链接&#xff1a;https://sublimerui.top/archives/5be6111c.html 计算机四级网络工程师考试快开始了。 这里总结和整理了相关的常考重点的思维导图&#xff0c;挺实用的&#xff0c;希望对大家有用哦~ 此部分为计算机网络部分~ 相关总结链接&#xff08;更…

计算机四级网络工程师等级考试题库软件---百度云分享

做件好事&#xff0c;考四级的兄弟们一起共勉~~~ 链接&#xff1a;http://pan.baidu.com/s/1qY5uW92 密码&#xff1a;9i6d ​若链接失效请关注如下公众号&#xff0c;后台私信【计算机四级】即可获得更新链接。 微信公众号&#xff1a;AutoML机器学习

[转]计算机四级网络工程师思维导图--常考重点

此文在我的博客原文链接&#xff1a;https://sublimerui.top/archives/767f2af2.html 计算机四级网络工程师考试快开始了。 这里总结和整理了相关的常考重点的思维导图&#xff0c;挺实用的&#xff0c;希望对大家有用哦~ 此部分为整体归纳出来的常考重点~ 相关总结链接&…

[转]计算机四级网络工程师思维导图--操作系统部分

此文在我的博客原文链接&#xff1a;https://sublimerui.top/archives/55ffe23a.html 计算机四级网络工程师考试快开始了。 这里总结和整理了相关的常考重点的思维导图&#xff0c;挺实用的&#xff0c;希望对大家有用哦~ 此部分为操作系统部分~ 相关总结链接&#xff08;更细…

计算机四级网络工程师笔记

计算机四级网络工程师是先要通过计算机三级网络技术. (计算机三级网络技术笔记翻公众号历史文章) 计算机四级是考两个科目 操作系统30个选择题10个多选题 计算机网络30个选择题10个多选题 两科各拿30分以上即可通过,考试时间是90分钟 如果你只想考证不太建议买课程和花太多时…

计算机四级网络工程师(备考过程,避开误区,高效备考!)

今年3月底考的计算机四级&#xff0c;想把考试的经验备考过程写在这里&#xff0c;供准备计算机四级的小伙伴参考哦~ 话不多说&#xff0c;直接上图 本人计算机相关专业&#xff0c;计算机四级网络工程师的操作系统计算机网络都是计算机专业的四大科目之二&#xff0c;所以这两…

计算机四级网络工程师知识点(非常全面!)

此文在我的博客原文链接&#xff1a;https://sublimerui.top/archives/e78192a8.html 马上计算机考试了呢。相关的四级网络工程师的知识点也很重要呀~ 自己从网上下载并花时间整理了相关的资料&#xff0c;下面内容是经过总结而成~请放心食用&#xff01; PS:以下内容为长文档…