⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 creraylmap.m

📁 基于OFDM的无线宽带系统仿真It contains mainly two parts, i.e. link-level simulator and system-level simulator.
💻 M
字号:
function [raylmap, mapvec] = creraylmap(rombvec)% DESCRIPTION [raylmap, mapvec] = creraylmap(rombvec)%  Creates a rayleigh fading map with complex samples.%  The map is generated by filtering white noise through a bessel function.%  This is made with a fourirer method that will make the map periodic.%  This property is used by useraylmap.m to cover the simulated area with%  a rayleighpattern much like a wall paper. mapvec is an integer fraction of %  rombvec. rombvec are two complex vectors that span the simulated area% INPUT%  rombvec --  The size of the area that is going to be covered by the map.%              Two complex vectors spanning the simulated area.% OUTPUT %  raylmap --  A small map with rayleigh samples that is used by %              the function useraylmap to create the actual%              multipath fading.%  mapvec --   Two complex elements spanning the area of the map.% TRY%  mesh(2*lin2db(abs(creraylmap([1 i]*1000))))% SEE ALSO%  useraylmap% by Magnus Almgren 000229ndips = 100; % average number of dips in the map.lambda = 2e8/3e9; % wavelength at 2GHzborder = 1; % repeated border from the other side of mapsiz = 2^7; % size of side of map in number of samplesmapvec = rombvec/ceil(min(abs(rombvec/lambda*2))/sqrt(ndips));v = mprod(mapvec(:),linspace(-1/2, 1/2, siz));r = abs(mplus(v(1,:).',v(2,:)))/lambda*2*pi;htau = r.^-0.25.*besselj(0.25,r);% calculate the map from white noise with convolution z = ifft2(fft2(irandn(size(htau))).*fft2(htau)); raylmap = z([1:end 1:border],[1:end 1:border]) ./std(z(:));  % normalize the map 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -