lap.m
来自「无线移动信道的matlab源码 用于对无线通信信道的编程实现」· M 代码 · 共 16 行
M
16 行
clear all;
close all;
theta=zeros(1,300);
m=10*pi/180;
sigma=3*pi/180;
for k=1:300
u=rand(1);
if u>=0.5
theta(k)=m-(sigma/sqrt(2))*log(2*(1-u));
else
theta(k)=m+(sigma/sqrt(2))*log(2*u);
end
end
theta=sort(theta);
theta(75)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?