Interpolation between two surfaces with same grid

2 visualizzazioni (ultimi 30 giorni)
Jakob Dotter
Jakob Dotter il 19 Dic 2019
Risposto: Cameron B il 28 Dic 2019
I have two different matrices (or surfaces) of the same size which also use the same XY grid. I want to interpolate between these two matrices to create another matrix. Since they already have the same grid I don't how I could apply the 'interp' command to this problem.
But to me it is very important to be able to chose the inter- and extrapolation method.
A simple example:
[x,y] = meshgrid(-4:4,-4:4);
M1 = magic(4)./4;
M2 = fliplr(M1)-4;
  2 Commenti
darova
darova il 19 Dic 2019
  • I want to interpolate between these two matrices to create another matrix
Please explain more precisely
darova
darova il 28 Dic 2019
What you are trying to achieve is still unclear for me. Maybe you have a picture of the result you want to get?
123.png

Accedi per commentare.

Risposte (1)

Cameron B
Cameron B il 28 Dic 2019
Try using the interp3 function.

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