필터 지우기
필터 지우기

interpolation on look up table

조회 수: 1 (최근 30일)
Brasco , D.
Brasco , D. 2014년 9월 2일
댓글: Brasco , D. 2014년 9월 2일
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 ?

채택된 답변

Andrei Bobrov
Andrei Bobrov 2014년 9월 2일
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);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by