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

📄 channel 2.m.txt

📁 this is the code for orthogonal code divison multiple access
💻 TXT
字号:
% RANDEXPO(a,n)
%   This function creates an exponentially distributed random variable
%   with parameter 'a'.  If a second argument is used, a vector of
%   'n' exponential variables is created.

function out = randexpo(a, n)

if nargin == 1
    out = -log(rand) / a;
end

if nargin == 2
    randvec = rand(1,n);
    out = -log(randvec) ./ a;
end

⌨️ 快捷键说明

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