fastinterpcol - Fast 1D interpolation along column dimension

버전 1.0.0 (2.25 KB) 작성자: Tan Nguyen
This is an expansion of the interp1q function of Matlab, aiming to improve the speed for 2D interpolation by using vectorization.
다운로드 수: 117
업데이트 날짜: 2019/1/17

라이선스 보기

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.

인용 양식

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. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0