noise_nb.m
来自「通信中一些基本实验的程序AM、FM、ASK、FSK、PSK等等」· 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 equals 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 + -
显示快捷键?