Filter löschen
Filter löschen

interpolate only between columns

6 Ansichten (letzte 30 Tage)
Melissa Driskell
Melissa Driskell am 11 Aug. 2016
Beantwortet: Richard Fisher am 17 Aug. 2016
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!!

Akzeptierte Antwort

Richard Fisher
Richard Fisher am 17 Aug. 2016
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:
If this is interpolating in the wrong dimension, then use the transposition as suggested by J. Webster.

Weitere Antworten (1)

J. Webster
J. Webster am 11 Aug. 2016
Can you just transpose the matrix before you interpolate?
Y = Y';
  1 Kommentar
Melissa Driskell
Melissa Driskell am 11 Aug. 2016
but interp2 interps in the Y and X direction, so how would this help?

Melden Sie sich an, um zu kommentieren.


Mehr zu Interpolation finden Sie in Help Center und File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by