How to create 3D grid from data without interpolation?

조회 수: 3 (최근 30일)
wkm42
wkm42 2016년 7월 4일
댓글: José-Luis 2016년 7월 5일
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
wkm42 2016년 7월 4일
Yes, but nearest neighbor doesnt seem to be a solution..
interp2(): If X and Y are grid vectors, then V must be a matrix containing length(Y) rows and length(X) columns.
I just got z as a vector
José-Luis
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
Radu Trimbitas 2016년 7월 4일
interp2() has options for cubic or spline

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by