ex9_5.m
来自「学习信号处理的经典代码」· M 代码 · 共 14 行
M
14 行
sigma=1;
fs=1e7;
t=1e-3;
t1=0:1/fs:t-1/fs;
n=length(t1);
rand('state',0);
u=rand(1,n);
x=sqrt(2*log2(1./u))*sigma;
%figure;
subplot(2,1,1),plot(x),xlabel('t(单位:秒)'),
%ylabel(‘y(单位:伏)’),
title('瑞利分布信号');
subplot(2,1,2),hist(x,0:0.02:10),title('均匀分布直方图');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?