室内多径信道建模
在MATLAB官网最新更新中,增加了室内信道的模拟函数,comm.RayTracingChannel 函数。该函数主要模拟密闭空间中含有一个课桌对信号造成的反射折射散射路径。
函数使用需要下载matlab2022。可用于模拟OFDM信道,也可用于一般调制,tX与rx分别为室内收发点的位置,包括xyz坐标系定位,此外还能够设置路径个数等,官方调用案例如下所示,点赞自行取用:
clear all
close all
clc
mapFileName = "conferenceroom.stl";
tx = txsite("cartesian", ...
"AntennaPosition",[-1.45; -1.4; 2.3], ...
"TransmitterFrequency",2.8e9);
rx = rxsite("cartesian", ...
"AntennaPosition",[.6; .2; 1.0]);
%Use the siteviewer object and the show object function to visualize the 3-D scenario. The transmitter and receiver sites are colored in red and blue, respectively.
siteviewer(SceneModel=mapFileName);
show(tx,"ShowAntennaHeight",false);
show(rx,"ShowAntennaHeight",false);
%Create a ray tracing propagation model with up to three reflections using the shooting-bouncing-rays (SBR) method. Perform ray tracing to find rays by using the propagation model.
pm = propagationModel("raytracing", ...
"CoordinateSystem","cartesian", ...
"Method","sbr", ...
"MaxNumReflections",3);
rays = raytrace(tx,rx,pm,"Map",mapFileName);
%Extract the computed rays from the returned cell array, and then plot the rays. Each ray is colored based on its path loss value.
rays = rays{1,1};
plot(rays)