Azzera filtri
Azzera filtri

interpolation on look up table

1 visualizzazione (ultimi 30 giorni)
Brasco , D.
Brasco , D. il 2 Set 2014
Commentato: Brasco , D. il 2 Set 2014
Hi guys i am new with this staff and i have problem.
I have three variables Altitude and Force which ara A, F and M.
A=5x1 matrix let sayA=[1000 1500 2000 2500 3000] and
F=20x1 F=1:1:20;
I have a table M=20x5 that consist of every M value for each altitude A, and Force F
eg. M(1,1)=M(Altitude{1000},Force{1}) , M(2,1)=M(Altitude{1000},Force{2})
like these.
My problem is, i need to find M values using interpolation between break points, like A= 1250 and F=2.5 M=?
how can i do this ?

Risposta accettata

Andrei Bobrov
Andrei Bobrov il 2 Set 2014
Use griddedInterpolant:
A = 1000:500:3000;
F = 1:20;
M = randi([-100 100],20,5);
[X,Y] = ndgrid(F,A);
FF = griddedInterpolant(X,Y,M);
out = FF(2.5,1250);

Più risposte (0)

Categorie

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

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by