cremob.m
来自「基于OFDM的无线宽带系统仿真It contains mainly two pa」· M 代码 · 共 15 行
M
15 行
function [xym, xyv] = cremob(nmob,rombvec)% DESCRIPTION [xym, xyv] = cremob(nmob, rombvec)% Creates a number of uniformly distributed mobiles.% INPUT% nmob -- Number of mobiles.% rombvec -- Two complex vectors spanning the rombic area containing cells.% OUTPUT% xym -- Mobile positions, given as a complex column vector.% xyv -- Mobile velocity, given as a complex colum vector.% TRY% [xym, xyv] = cremob(100,[1 i]), plot(xym, '*'), title('Mobile positions')% figure, plot(xyv, 'v'), title('Mobile velocity')xym = rand(nmob, 2) * rombvec.';xyv = irandn(size(xym))/sqrt(2)*14;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?