MATLAB trilinear interpolation

版本 1.2.0.0 (3.4 KB) 作者: Mehmet OZTURK
A Matlab mex function to perform trilinear interpolation.
2.9K 次下载
更新时间 2014/11/20

查看许可证

I'm working with large 3D data and have to interpolate in 3D space. With Matlab's interp3 function my computer hangs because of high memory requirement of vectorized interp3. So i decided to write a mex file to sequencially interpolate the data. There is a speed gain up to 5x.
This function acts as matlab's interp3 function when interp3 is set to linear. However there are some differences. First of all trilinear requires monotonically spaced input grid such as produced by meshgrid. Also trilinear uses zero as extrapolaiton value (can be changed as an input parameter).
This is my first mex code and can be improved such as this code can be en equivalent of interp3.

引用格式

Mehmet OZTURK (2024). MATLAB trilinear interpolation (https://www.mathworks.com/matlabcentral/fileexchange/19687-matlab-trilinear-interpolation), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Interpolating Gridded Data 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Source code is included instead of executables.

1.0.0.0

Updated Demo File