필터 지우기
필터 지우기

how can I do Interpolation 1 to the nearest value of the reference

조회 수: 1 (최근 30일)
Farshid Daryabor
Farshid Daryabor 2020년 4월 20일
댓글: Farshid Daryabor 2020년 4월 20일
please find attached file, I want interpolate the each column of matrix "h(:,1:89)" corresponding to the reference depth (gdept). I used the following command but the output is not what I expect. I expect to be start first row of each column around 2.5,
pq = interp1(h(:,1:end),gdept);
pq = interp1(h(:,1:end),gdept,'nearst');
pq = interp1(h(:,1:end),gdpt,'linear');
  댓글 수: 4
Farshid Daryabor
Farshid Daryabor 2020년 4월 20일
please see attached, what I expect is for example the first row of object 24.6 start at the row 5 or 6 and the first row to fifth row NaN because we don't have value. I am trying sort or unique function but still not what I am looking for. I really appreciate and help.
Farshid Daryabor
Farshid Daryabor 2020년 4월 20일
I am trying
pq = griddedInterpolant(h_object,h_refrence,'linear');
Error using griddedInterpolant
The coordinates of the input points must be finite values; Inf and NaN are not permitted.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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