fastinterpcol - Fast 1D interpolation along column dimension

Versione 1.0.0 (2,25 KB) da Tan Nguyen
This is an expansion of the interp1q function of Matlab, aiming to improve the speed for 2D interpolation by using vectorization.
118 download
Aggiornato 17 gen 2019

Visualizza la licenza

The Matlab's built-in `interp1q` function is known to be a very fast linear interpolator that can deal with non-uniform grids. However, it only supports 1d input vectors. Interpolating over multiple columns of a 2D matrix will require multiple calls of `interp1q` using the for loop, which is very slow.

This source code implements `fastinterpcol`, a vectorized version of `interp1q`. This function does very fast interpolation along the column dimension of a 2D matrix. Interpolation along the row dimension can be also done simply by transposing the input before calling the function.

Experimental results show that `fastinterpcol` is at least 2x faster than `interp1q` for a matrix of 100 columns.

Cita come

Tan Nguyen (2024). fastinterpcol - Fast 1D interpolation along column dimension (https://www.mathworks.com/matlabcentral/fileexchange/70015-fastinterpcol-fast-1d-interpolation-along-column-dimension), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2018b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Interpolation in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0