Need help with an Interpolation (bilinear?)
3 次查看(过去 30 天)
显示 更早的评论
First, I'm not well versed in MATLAB...
Here is the problem I'm trying to solve. I have 4 vectors, that define a top, bottom, left, and right boundary. So for example xtop=[1 2 3 4 5 6 7] xbottom is the same length 1x7 and yright is 1x50 and yleft is 1x50. I want to form a mesh by interpolating between these boundaries. So I would end up with a matrix that is 50x7 and is an interpolation of the data on the boundaries of the matrix. The data on the boundaries is defined by the four vectors with the obviously equal "corners". The data in the boundary vectors isn't necessarily monotonic. Are there functions in matlab that can do this type of interpolation? Thanks for your help.
0 个评论
采纳的回答
Image Analyst
2013-4-10
编辑:Image Analyst
2013-4-10
Yes. Interp1(), or meshgrid(), depending on what form you want the output in. Or you could try TriScatteredInterp() or even roifill() (if you have the Image Processing Toolbox).
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!