Every once in a while I get asked for a 3-d version of inpaint_nans, so I modified my existing 2-d code to run in 3 dimensions. This code has only two methods as options. I picked what I felt were the two most useful methods from inpaint_nans to extend to 3-d.
See the included published demos for examples of use.
John D'Errico (2022). Inpainting nan elements in 3-d (https://www.mathworks.com/matlabcentral/fileexchange/21214-inpainting-nan-elements-in-3-d), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!