how to linearly interpolate 2D matrix at a point (x,y)
6 次查看(过去 30 天)
显示 更早的评论
X: x-coordinate values, Y: y-coordinate values. These correspond to Values as the 2D table. interpolate the value at (2.5,3.5) but my code doesn't work. receive error of wrong input arguments
interpolatedvalue = interp2(X,Y,Values,2.5,3.5);
1 个评论
Akira Agata
2018-3-26
X, Y and Values should be full grid matrix or grid vector. Please check these variables in your code and the following documentation page.
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!