How to interpolate empty gridcells in the 3D model?

I have a 3D model of size ss = 139 48 101 which has a lot inactive cell having values NaN and therefore appears empty space shown in the figure below. I do not want empty and want to interpolate the iactive cells by using nearby values. How I can do it - interpolation based on near by data values (instead of taking NaN as a single contant).
The data is attached here:

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Asked:

on 5 Mar 2024

Answered:

on 5 Mar 2024

Community Treasure Hunt

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

Start Hunting!