How to create 3D grid from data without interpolation?
显示 更早的评论
Hey,
is there some function like griddata which doesnt interpolate the z data? I need some function to save all z values or the mean in the specific x,y segment.
Thanks for you help!
10 个评论
wkm42
2016-7-4
José-Luis
2016-7-4
Sorry, I don't get it.
How do you define your brackets?
What is the result you expect? Why [2,2]?
wkm42
2016-7-4
José-Luis
2016-7-4
That still looks like interpolation to me. It looks like you might want to find the nearest neighbor.
wkm42
2016-7-4
José-Luis
2016-7-5
I'm sorry: I don't quite get what you are after. Maybe try the 'nearest' option for griddata()?
回答(1 个)
Radu Trimbitas
2016-7-4
0 个投票
interp2() has options for cubic or spline
类别
在 帮助中心 和 File Exchange 中查找有关 Interpolation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
