单项选择题

已知x,y为样本向量,xi为已知自变量值,则正确的一维线性插值是()

A.yi=interp1(x,y,xi)
B.yi=table1(x,y,xi)
C.yi=spline(x,y,xi)
D.yi=interp1([x,y],xi)