Matlab代码求解释,尤其是第二行和第六行(认知无线电频谱感知)for ii=1:1:count; t = (kk-1)*n+1:kk*n;init_phase = 1/6*pi;sig=2*sin(2*pi*W/Fs*t+init_phase);noi1 = randn(1,n);noi1 = sqrt(1/snr1)*noi1;rec1 = noi1 + sig;
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 21:20:25
Matlab代码求解释,尤其是第二行和第六行(认知无线电频谱感知)for ii=1:1:count; t = (kk-1)*n+1:kk*n;init_phase = 1/6*pi;sig=2*sin(2*pi*W/Fs*t+init_phase);noi1 = randn(1,n);noi1 = sqrt(1/snr1)*noi1;rec1 = noi1 + sig;
Matlab代码求解释,尤其是第二行和第六行(认知无线电频谱感知)
for ii=1:1:count;
t = (kk-1)*n+1:kk*n;
init_phase = 1/6*pi;
sig=2*sin(2*pi*W/Fs*t+init_phase);
noi1 = randn(1,n);
noi1 = sqrt(1/snr1)*noi1;
rec1 = noi1 + sig;
Matlab代码求解释,尤其是第二行和第六行(认知无线电频谱感知)for ii=1:1:count; t = (kk-1)*n+1:kk*n;init_phase = 1/6*pi;sig=2*sin(2*pi*W/Fs*t+init_phase);noi1 = randn(1,n);noi1 = sqrt(1/snr1)*noi1;rec1 = noi1 + sig;
for ii=1:1:count; 这行值循环判定
t = (kk-1)*n+1:kk*n; 设置t数组 间隔为1
init_phase = 1/6*pi; 赋值
sig=2*sin(2*pi*W/Fs*t+init_phase); 依然是简单的赋值
noi1 = randn(1,n); randn(1,n); 这个是生成一个1乘n的随机数组
noi1 = sqrt(1/snr1)*noi1; 本身这个语句还是赋值 sqrt是开根号
rec1 = noi1 + sig; 赋值