noise_nb.m
来自「北邮《通信原理基于Matlab的计算机仿真》书的源码 m文件 好不容易弄来的」· M 代码 · 共 13 行
M
13 行
function [out] = noise_nb(fc,B,N0,t)
%output the narrow band gaussian noise sample with single-sided power spectrum N0
%at carrier frequency equals fc and bandwidth euqals B
dt = t(2)-t(1);
Fmx = 1/dt;
n_len = length(t);
p = N0*Fmx;
rn = sqrt(p)*randn(1,n_len);
[f,rf] = T2F(t,rn);
[t,out] = bpf(f,rf,fc-B/2,fc+B/2);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?