decision.m
来自「这个第四代移动通信中」· M 代码 · 共 30 行
M
30 行
function V_R_sort_decision = decision(V_R_opt_sort, V_R_sort, N_point_FFT);
% to do the "men xian pan jue"
[row_V_R_sort, column_V_R_sort] = size(V_R_sort);
% angle_opt_sort = angle(V_R_opt_sort)/pi;
% angle_sort = angle(V_R_sort)/pi;
power_max = max(abs(real(V_R_opt_sort(1,1))), abs(imag(V_R_opt_sort(1,1))));
for index_row = 1:row_V_R_sort
for index_col = 1:column_V_R_sort
if abs(real(V_R_sort(index_row, index_col)) - power_max) < 0.1
V_R_sort_decision(index_row, index_col) = 0.2;
end;
if abs(imag(V_R_sort(index_row, index_col)) - power_max) < 0.1
V_R_sort_decision(index_row, index_col) = 0.2*i;
end;
if abs(real(V_R_sort(index_row, index_col)) + power_max) < 0.1
V_R_sort_decision(index_row, index_col) = -0.2;
end;
if abs(imag(V_R_sort(index_row, index_col)) + power_max) < 0.1
V_R_sort_decision(index_row, index_col) = -0.2*i;
end;
end;
end;
%V_R_sort_decision = decision(V_R_opt_sort, V_R_sort, N_point_FFT);
test_div = V_R_sort_decision(:,:) ./ V_R_opt_sort(:,:)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?