Converting From One Grid To Another, interpolation
11 views (last 30 days)
Show older comments
Hi, I have tried a couple different approaches to this, but I am running into memory limits on Interp3 and would like to get some advice about the best method.
I a grid of data, about 1300 points of X,Y,Z, and variable V. I would like to interpolate this onto another grid X2, Y2, Z2 with about 7500 points.
What would be the best way to approach this? I only have to do this operation occasionally, not repeatedly.
0 Comments
Accepted Answer
the cyclist
on 16 Dec 2011
If the original grid of points is regular, then interp3() should be fine. If the grid is irregular and scattered, then TriScatteredInterp() will likely be better suited.
I see no reason why your grids of 1300 and 7500 points should be problematic (unless you mean an extent of 7500 points per dimension). Can you share your code?
4 Comments
the cyclist
on 16 Dec 2011
Great. Glad to hear it. By the way, I think the reason that interp3() ran into memory issues is that it was implicitly using meshgrid() to expand each of those vectors into a 3D grid, making it huge.
More Answers (0)
See Also
Categories
Find more on Interpolation 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!