How to obtain the coordinate of the maximum value in the Cross ambiguity function

조회 수: 2 (최근 30일)
John Lee
John Lee 2021년 2월 19일
댓글: John Lee 2021년 2월 19일
I am trying to find delay and doppler shift between two received signals by using the cross ambiguity function as follows.
prf = [1/1e-3 1/1e-3];
Fs = 1/1e-5;
[afmag,dly,dpp] = ambgfun(r1,r2,Fs,prf); % two received signals: r1 and r2
So, I obtain 2D array of afmag besides dly and dpp.
I think the coordiate where afmag is the maximum is what I want.
I may be able to find afmag, but I am not sure how to find the corresponding "dly" and "dpp" at that point of "afmag".
So, I want to know the maximum value of "afmag", the values of "dly" and "dpp" at that maximum point.
Thank you for your help.

답변 (1개)

David Goodmanson
David Goodmanson 2021년 2월 19일
Hi John,
Not having the phased array system toolbox I don't know how the plot axes are oriented, but I think one of the two possibilities below should work, assuming the basic idea is correct. You would have to check on a plot.
[afmag,dly,dpp] = ambgfun(r1,r2,Fs,prf); % two received signals: r1 and r2
[~,k] = max(afmag(:))
[i j] = ind2sub(size(afmag),k)
% either this
dly0 = dly(i)
dpp0 = dpp(j)
% or this
dly0 = dly(j)
dpp0 = dpp(i)
  댓글 수: 1
John Lee
John Lee 2021년 2월 19일
Thanks, David,
Yes, but the problem is that we are not sure it is correct.
I don't know how to verify it because how the plot axes are oriented as you said.
Thnk you, anyway.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by