how can I do Interpolation 1 to the nearest value of the reference
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 20 de Abr. de 2020
h(:,1:end)
would be the same as
h
except in some cases involving multidimensional arrays.
Farshid Daryabor
el 20 de Abr. de 2020
Farshid Daryabor
el 20 de Abr. de 2020
Farshid Daryabor
el 20 de Abr. de 2020
Respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!