Software Open Access

1-pass fixed-rate linear resampler in Matlab/Octave

Harris Georgiou

Dublin Core Export

<?xml version='1.0' encoding='utf-8'?>
<oai_dc:dc xmlns:dc="" xmlns:oai_dc="" xmlns:xsi="" xsi:schemaLocation="">
  <dc:creator>Harris Georgiou</dc:creator>

This is a template stand-alone code (no externals required) for a simple 1-pass fixed rate linear resampler. Specifically, the script can be used as-is or as base for a function, which take a series of pairs &lt;t,x&gt; and a requested fixed resampling rate and it produces a new series of &lt;t',x'&gt; using stepwise linear regressors.

The script includes a data sorting step against &lt;t&gt;, which is not implemented here internally and can be removed if the input data are already expected to be sorted. In case of no sorting step here, the script is completely 1-pass, which means that all elements of the two input vectors (ref. points) are read only once for the entire resampling process. This is particularly useful when this implementation is to be applied directly to extremely large input files (e.g. columns in .csv) with only minimal memory usage for the calculations and only sequential read mode for speed.

Note: This work is supported by the DART project (H2020): "Data-Driven Aircraft Trajectory Prediction Research" ( and the Data Science Lab ( at the University of Piraeus, Greece (</dc:description>
  <dc:subject>signal processing</dc:subject>
  <dc:subject>timeseries analysis</dc:subject>
  <dc:subject>linear interpolation</dc:subject>
  <dc:subject>signal resampling</dc:subject>
  <dc:title>1-pass fixed-rate linear resampler in Matlab/Octave</dc:title>
All versions This version
Views 2828
Downloads 1212
Data volume 1.6 MB1.6 MB
Unique views 2828
Unique downloads 77


Cite as