已知一组数据:x=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];y=[1.3, 5, 8.8, 6.5, 2.4, 3.5, 2, 5.5, 9.2, 10];z=1.6401, 3.202, 4.036, 5.185, 7.071, 9.068, 10.259, 12.042, 13.454, 15.620];用matlab计算在(4.5,4.5)的插值,正确的代码为()
A.
z1=interp2 (x,y,z,4.5,4.5,'cubic')
B.
z1=griddata(x,y,z,4.5,4.5)
C.
z1=griddata(x,y,z,4.5,4.5,'cubic')
D.
z1=interp2 (x,y,z,4.5,4.5)