Finding pairs in (not equidistant) time series in matlab

The following Matlab project contains the source code and Matlab examples used for finding pairs in (not equidistant) time series.  Type parameter:   'l': only lower neighbors accepted   'u': only upper neighbors accepted   'n' or not given: nearest (upper or lower) neighbors selected If there is no neighbor for x(i), y2(i)=idx(i)=NaN is returned.

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

Project Files: 

File NameSize
license.txt 1313
nearest.m 1709