29 lines
840 B
Matlab
29 lines
840 B
Matlab
function [sv_ambi_val] = cal_sv_ambi_func(sv_1, sv_2)
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
%
|
|
% Calculting ambiguity(normalized correlation) of two input steering vectors
|
|
% Start : 23.08.25
|
|
% End : 23.08.25
|
|
% developed by Kwanggoo Yeo
|
|
%
|
|
% Description
|
|
% - Input
|
|
% - 1) sv_1 [vector], [-] : the first steering vector fc
|
|
% - 2) sv_2 [vector], [-] : the second steering vector fc
|
|
%
|
|
% - Output
|
|
% - 1) sv_ambi_val [scalar], [-] : The ambiguity(normalized correlation) of two input steering vectors
|
|
%
|
|
% History
|
|
% (23.08.25) Completed
|
|
%
|
|
% Referece
|
|
% -
|
|
%
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
sv_ambi_val = abs(sv_1' * sv_2) / (norm(sv_1) * norm(sv_2));
|
|
|
|
end
|
|
|