I have a large matrix and I want to interpolate between the columns, i.e. interp2 does exactly what i want EXCEPT i don't want it to interp between the rows.
there must be an easy way to do this!!
thanks!

 채택된 답변

Richard Fisher
Richard Fisher 2016년 8월 17일

1 개 추천

I think you're looking for interp1, which can be used to interpolate for a number of functions(columns in a matrix) in one pass. To see an example of this, execute the following:
openExample('matlab/InterpolateMultipleSetsofDatainOnePassExample')
If this is interpolating in the wrong dimension, then use the transposition as suggested by J. Webster.

추가 답변 (1개)

J. Webster
J. Webster 2016년 8월 11일

0 개 추천

Can you just transpose the matrix before you interpolate?
Y = Y';

댓글 수: 1

Melissa Driskell
Melissa Driskell 2016년 8월 11일
but interp2 interps in the Y and X direction, so how would this help?

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

카테고리

도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by