Skip to content
Snippets Groups Projects
Commit dcd863ef authored by Trinh Hoang, Minh's avatar Trinh Hoang, Minh
Browse files

Small changes in function names

parent 07e6ccf1
Branches
No related tags found
No related merge requests found
......@@ -73,23 +73,4 @@ linInd = find(Spec_est==pos2DInd);
DOA_est = [Grid(jOpt); Grid(iOpt)];
Spec_est(indGrid) = Spec_vec;
Spec_est = Spec_est + Spec_est';
%
% Spec_est = zeros(NGrid, NGrid);
% for (iGrid = 1:NGrid-1)
% for (jGrid = iGrid+1:NGrid-1)
% a1Ha2 = AHA(iGrid, jGrid);
% a1HRa1 = real(AHRA(iGrid, iGrid));
% a2HRa2 = real(AHRA(jGrid, jGrid));
% a2HRa1 = AHRA(jGrid, iGrid);
% Spec_est(iGrid, jGrid) = 1/(NAnt^2 - abs(a1Ha2)^2)*(NAnt*(a1HRa1 + a2HRa2)-2*real(a1Ha2*a2HRa1));
% end
% end
% toc
% figure
% imagesc(Spec_est)
% Search for the global maximum and estimated DOAs
% [~, linInd] = min(1./Spec_est(:));
% [iOpt, jOpt] = ind2sub(NGrid, linInd);
% DOA_est = [Grid(iOpt); Grid(jOpt)];
end
\ No newline at end of file
function [ DOA_est, Spec_est] = DML_2D_v2( Y, NSrc, Grid, AGrid, varargin )
%DML_2D_v2 returns the estimated DOAs and the corresponding 2D matrix
function [ DOA_est, Spec_est] = DML_2D( Y, NSrc, Grid, AGrid, varargin )
%DML_2D returns the estimated DOAs and the corresponding 2D matrix
%containing the value of the DML function in the case of two source
%signals. In this function, simple nested for-loops are used to search for
%the global minimum. The cost function of DML for two source signals are
......
function [ DOA_est, Spec_est] = SML_2D( Y, NSrc, Grid, AGrid, varargin )
%DML_2D returns the estimated DOAs and the corresponding 2D matrix
%containing the value of the DML function in the case of two source
%SML_2D returns the estimated DOAs and the corresponding 2D matrix
%containing the value of the SML function in the case of two source
%signals. In this function, simple nested for-loops are used to search for
%the global minimum
%
......
function [ DOA_est, Spec_est] = WSF_2D_v2( Y, NSrc, Grid, AGrid, varargin )
%WSF_2D_v2 returns the estimated DOAs and the corresponding 2D matrix
function [ DOA_est, Spec_est] = WSF_2D( Y, NSrc, Grid, AGrid, varargin )
%WSF_2D returns the estimated DOAs and the corresponding 2D matrix
%containing the value of the WSF function in the case of two source
%signals. In this function, simple nested for-loops are used to search for
%the global minimum. The cost function of DML for two source signals are
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment