非均匀网格中的多重网格插值 - 从较粗到较细的网格点
我正在努力寻找解决我的问题的实际解决方案,如果您能提供帮助,我将非常高兴:
鉴于不均匀的粗网格图案上有一些分散的起点坐标(附图上的黑点),我希望有一个嵌套循环,用于显示更精细网格点的坐标(如黄色和红色点所示),每个网格点位于较粗糙的方角的中间。并将所有点保存在一个数组中。
在 Matlab 中最简单的方法是什么?
I'm struggling to find a practical solution to my problem and would be so much glad if you could help:
Given a few scattered starting point coordinates (black dots on the attached figure) on a nonuniform coarse grid pattern, I would like to have a nested loop to reveal the coordinates of finer grid points (as shown by yellow and red points), each sitting in the middle of a coarser square corner. And save all the points in an array.
What would be the easiest way to do it in Matlab?
Figure is on:
http://inciinwonderland.blogspot.com/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道这对你来说有多严重,因为它们确实在对角线处,但是对于一个超级简单的方法,你可以:
取外面的 4 个点,从中得到平均值,并将其作为一个新点。这些点随后将位于较粗网格点中间附近的某个位置。
Puls:这很容易循环,而且非常简单,应该可以尝试一下,即使它不完全是您想要的。
BTW:边界上的点是上点和下点(2)的平均值。水平方向也一样。
I don't know how serious it is to you, that they are really at the diagonal, but for a super simple method you could:
Take the outer 4 points, get the mean out of it and take that as a new point. These points subsequently will be lying somewhere near the middle of the coarser gridpoints.
Puls: this is easily loopable and so simple, that it should be possible to try it, even if it's not exactly what you are looking for.
BTW: the points on the borders are the means of the upper and lower (2) points. Same for horizontal.