www.pudn.com > RadarSignals.rar > cal_and_plot_pamb7.m


% cal_and_plot_pamb7.m - written by Eli Mozeson and Nadav Levanon
% calculates and plots the periodic ambiguity function of a signal

% assumes that the work space includes a row vector u (signal complex envelope)
% and row vector t (time vector) where t is the equally spaced time points on
% which u is defined

% define the delay vector on which the ambiguity plot is calculated
dt=t(2)-t(1);	% dt is the sampling period of u(t)
m =length(t);	% total number of samples is u(t)
%T 				% normalized maximal delay (defined externally)
%N					% number of grid points on each side of the delay axis (defined externally)

% calculate a delay vector with N+1 points that spans from zero delay to ceil(T*t(m))
% notice that the delay vector does not have to be equally spaced but must have all
% entries as integer multiples of dt

% two cases are possible
% 		a) T*m>=N - the signal is oversampled relative to the delay axis definition
% 		b) T*mm,
   msgbox(['T is larger then 1 using 1 (single period) instead'],'Warnning !!!');
   Tused=1;
else
   Tused=T;
end

if Tused*m