# How to increase the resolution of the ambiguity function when I need to apply the sampling frequency (Fs) greater than 10 to the power of 6?

1 view (last 30 days)
John Lee on 9 Oct 2021
Edited: Yukthi S on 1 Mar 2024
I would like to obtain the time delay and Doppler shift between two received signals by using afmag = ambgfun(x,y,Fs,PRF).
where x and y are the two received signals, Fs is the sampling frequency and PRF is the pulse repetition frequency.
It works well if I apply up to 10^6 for Fs but Matlab cannot perform beyond 10^6 of Fs.
Does anyone know how I can improve the resolution of the ambiguity function such as interpolation or something when I
cannot apply Fs greater than 10^6?

Yukthi S on 24 Feb 2024
Edited: Yukthi S on 1 Mar 2024
Hi John
I got that the Ambiguity function was performing well till Fs<10^6 and you wanted to improve the resolution of the function when you can not apply Fs>10^6.
Here ,I am going to use the function “interp2”.Interpolation can enhance visual representation,but it does not increase the actual information content of your data.
You can refer to the following code on how to use the “interp2” function and make changes accordingly.
afmag = ambgfun(x, y, Fs, PRF);
% Define the interpolation factor, e.g., to interpolate by a factor of 10
interp_factor = 10;
% Create a grid for the original ambiguity function dimensions
[rows, cols] = size(afmag);
row_grid = 1:rows;
col_grid = 1:cols;
% Create a finer grid for interpolation
fine_row_grid = linspace(1, rows, rows * interp_factor);
fine_col_grid = linspace(1, cols, cols * interp_factor);
% Perform 2D interpolation
afmag_interp = interp2(row_grid, col_grid, afmag, fine_row_grid', fine_col_grid, 'spline');

### Categories

Find more on Matched Filter and Ambiguity Function in Help Center and File Exchange

R2021b

### Community Treasure Hunt

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

Start Hunting!