how can I do Interpolation 1 to the nearest value of the reference
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!