matlab外部插值,matlab实现快速n维线性插值与外插

LERP函数在MATLAB中提供类似INTERP1Q的n维线性插值及外插功能,但速度更快且支持向量化操作。LERP允许输入XI为n维数组,Y可以是列向量或矩阵。当Y为矩阵,XI为N维数组时,结果F将有N+1维。LERP还支持指定线性外插范围。通过示例展示了LERP在对数函数插值和外插的应用,比较了实际与外插结果的差异。
摘要由CSDN通过智能技术生成

LERP: fast n-dimensional linear interpolation & extrapolation

Syntax:

F=LERP(X,Y,XI)

F=LERP(X,Y,XI,EXTRAP)

LERP is akin to the Matlab function INTERP1Q and can be used with the same syntax as INTERP1Q with the same results at comparable speed. However, LERP has the following features and capabilities to set it apart from INTERP1Q and others:

•Vectorization allows LERP to be much faster that built-in MATLAB interpolation functions for some applications that would otherwise require many looped function calls.

•XI may be an n-dim array

•Y may be a column vector or a matrix (as in INTERP1Q)

•If Y is a matrix and XI is an array with N dimensions, F will have N+1 dimensions. The first N dimensions correspond to size(XI), and the N+1 dimension is size(Y,2).

•F=LERP(X,Y,XI,EXTRAP) will expand the function domain (defined in coordinates X) with linear extra

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值