Converting From One Grid To Another, interpolation
12 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
the cyclist
2011 年 12 月 16 日
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 件のコメント
the cyclist
2011 年 12 月 16 日
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.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!