func_res5.m
来自「OFDM宽带无线系统的链路级的仿真程序(多天线」· M 代码 · 共 24 行
M
24 行
% this function will analyse results from non-adapted systems to % find the threshold,throughput for a certain target, given% the discrete ber/fer/throughput vs SNR vectors% this threshold will be put into the threshold tables and used later in% adapted systems% By Yuanye Wang% CTIF,AAU% yywang@kom.aau.dkfunction [mg]=func_res5(fer_c,misnr,stp,targetFER)lin_stp = 100;ix = 0;for tgt = targetFER ix = ix + 1; a = find(fer_c>tgt); if length(a)==0||a(end)==length(fer_c)%length(a)==length(fer_c) mg(ix)=NaN; else tmp_FER = linspace(fer_c(a(end)),fer_c(a(end)+1),lin_stp); abs_mg = abs(tmp_FER - tgt); [v,p] = min(abs_mg); mg(ix) = misnr+(length(a)-1)*stp+(p-1)*stp/length(tmp_FER); endend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?