griddedInterpolant 3D from two 2D grid and one 1D grid?

9 views (last 30 days)
Hi,
I'ts early sunday morning and I just can't seem to get my head around this...
I've got 2 2D grids:
size(a)=(GC,GA) size(b)=(GC,GA)
and one 1D grid: size(c)=GC
where GX is the number of gridpoints of grid X. Now, I want to set up a griddedInterpolant object using all three of grids but I just cant figure out how to do it? I previously had a loop over GC where I set up and evaluated the interpolant in GC point, but it turnes out its very expensive to set up the griddedInterpolant repeatedly so I'm looking for a more efficient way. I've been playing around with NDGRID but can't seem to get it working... In the end I will be using (X+1)D intepolation from X 2D grids and one 1D grid so a semi-general solution would be preferred :)
Any help would be greatly appreciated!
Kindly, Anders

Answers (0)

Categories

Find more on Animation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!