
function [range] = Range_(beat_frequency, fftData, param)

    Fi = beat_frequency;
    
    range = (param.c/(2*param.slope)) .* Fi;
    
    f = (0:param.numSamplesperChirp-1)*param.adcSamplingrate/param.numSamplesperChirp;
    r = param.c/(2*param.slope) .* f;
    figure
    plot(r,abs(fftData(30,:)))
    title('Range Vs Target Range')
    grid on
    xlabel('Range(m)')
    ylabel('Signal Amplitude')

end