Azzera filtri
Azzera filtri

Two dimensional extrapolation

26 visualizzazioni (ultimi 30 giorni)
stephen
stephen il 27 Apr 2011
Does anyone know how to do two-dimensional extrapolation for out of range values?
Z=interp2(X,Y,Z,XI,YI).
In Matlab, you specify "extrapval" for out of range values. If I don't want to specify a value but actually want to extrapolate, any easy way of doing it in Matlab?
Thanks!

Risposta accettata

John D'Errico
John D'Errico il 3 Mag 2011
I posted the function interpne on the FEX a few years ago. It does what you want, as long as you want linear extrapolation.
Note: extrapolation is a dangerous business.

Più risposte (1)

Dan
Dan il 3 Mag 2011
You can calculate the derivatives than use linear extrapolation using these derivatives. Another way is to re-implement interp2 to incorporate that feature.

Categorie

Scopri di più su Interpolation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by