File Exchange

image thumbnail


version 1.0.1 (2.16 KB) by Linas Svilainis
Calculates the delay between two signals using parabolic interpolation of cross-correlation peak

1 Download

Updated 19 Aug 2019

View License

function [ToFpar] = GetTOFparab(Ascan,Ref);
used to get the delay between RefSignal and MySignal. This delay is called time of flight (ToF).
Estimation is based on cross-correlation peak position in time.
ToF is in subsamples, i.e. with better resolution than sampling period.
Time interpolation is using parabolic aproximation.
Assume you have a pulse (reference, or transmitted signal) and a delayed version of it (measured signal in sonar, radar, range meter application). You need to estimate the delay between the measured and reference signals. All you need to supply just these two signals. This function calculates the cross-correlation between two signals and estimates the location of the peak. Peak is estimated with higher than sampling period resolution. Subsample estimation is done using parabolic interpolation. Refer paper below for this function accuracy analysis:
L.Svilainis, et al. Subsample interpolation bias error in time of flight estimation by direct correlation in digital domain. Measurement. 2013, vol. 46, iss. 10, p. 3950-3958.
Two signals can be any shape, not necessary just pulse (e.g. chirp, PSK sequence). Can also be used for spatial shift estimation if signals in time are replaced by signals in space.
Once downloaded, type "help GetTOFparab" for more info

Cite As

Linas Svilainis (2020). GetTOFparab (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)



Explanation expanded

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux