Shrey
Shrey

Reputation: 1260

3D interpolation with irregular values of x,y and z

I have few values X, Y and Z. And corresponding to these values I have a value B. Now I have file with Xi, Yi and Zi values. But the values corresponding to this is what I need to fill.

My question looks similar to many examples of interpolation. But I had never implemented this in any of the language.

interp3 function is available in MATLAB. I believe this will solve my problem. But I am unable to come through this.

I will be wishing for a working code. Even a python code will help. Kindly help

Upvotes: 2

Views: 139

Answers (1)

Shai
Shai

Reputation: 114786

It seems like you are looking for griddata rather than interp3

 Bi = griddata( X, Y, Z, B, Xi, Yi, Zi );

Upvotes: 5

Related Questions