二次元の行列に外挿を行うことはできますか?

조회 수: 9 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2013년 10월 25일
편집: MathWorks Support Team 2016년 12월 19일
二次元の行列に外挿(補外、extrapolation)を行うことはできますか?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2016년 12월 19일
편집: MathWorks Support Team 2016년 12월 19일
interpn関数で補間手法に'spline'を使用すると、外挿を行うことができます。
 
>> A = magic(3)
A =
8 1 6
3 5 7
4 9 2
>> [xi,yi] = ndgrid(0:length(A)+1);
>> interpn(A,xi,yi,'spline')
ans =
65 19 -3 -1 25
27 8 1 6 23
1 3 5 7 9
-13 4 9 2 -17
-15 11 13 -9 -55
また、R2013a 以降では、グリッドデータに対しては griddedInterpolant 関数, 散布データに対しては、scatteredInterpolant 関数を使用することができます。

추가 답변 (0개)

카테고리

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

제품


릴리스

R2009a

Community Treasure Hunt

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

Start Hunting!