MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB数学相关] 如何求外插值? (https://www.labfans.com/bbs/showthread.php?t=8871)

489761718 2009-06-08 09:43

如何求外插值?
 
[COLOR="red"] [B][FONT="楷体"][SIZE="7"] 如果有x=1:10
y=[1 5 23 4 6 8 9 3 58 7】
如何能求出x=11时的值。
用插值解只能求出内插值,怎么求出外插值啊???


x=1:10;
y=[1 5 23 4 6 8 9 3 58 7];
t=interp1(x,y,11)
结果却是 y=NaN[/B][/SIZE][/FONT][COLOR="Red"][/COLOR][/COLOR]

TTT_IOU 2009-06-08 11:40

回复: 急急急!!!!
 
试试这个yi = interp1(x,y,11,'linear','extrap'),望有帮助!!!


所有时间均为北京时间。现在的时间是 14:55

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.