Interp2/Scatterinterp unstructured Data don't work!
显示 更早的评论
Hi MathworKS community,
i hava a set of data that i can plot like the picture below , as you see it dosen't cover all the area
so when i use interp2 to find the value of Z inside the contour i get this error 'Input grid is not a valid MESHGRID.'
i have an idea : fill the empty area with Nan, but it's a little bit confusig for me.
any solution?


contourf(X,Y,Z)
colormap jet;
interp2(X,Y,Z,3000,50) %for example i want to interpolate at X=3000 and Y=50
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
