fig5_12c.m

来自「matlab programming for engineers(2nd)书籍源」· M 代码 · 共 15 行

M
15
字号
ray = sqrt(randn(1,10000000).^2 + randn(1,10000000).^2);
ray = ray / mean(ray) * 10;
[n,x]=hist(ray,0:1:34);
figure(3);

n = n/size(ray);
plot(x,n,'LineWidth',2);
hold on;
plot([10 10],get(gca,'Ylim'),'k-.');
plot([26 26],get(gca,'Ylim'),'r:');
legend('Noise probability distribution','Mean Noise','Detection Threshold');
title('\bfNoise distribution after detection');
xlabel('\bfAmplitude (volts)');
ylabel('\bfProbability');

⌨️ 快捷键说明

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