MATLAB里关于interp2的问题
答案:1 悬赏:0 手机版
解决时间 2021-04-17 13:58
- 提问者网友:箛茗
- 2021-04-17 08:00
MATLAB里关于interp2的问题
最佳答案
- 五星知识达人网友:像个废品
- 2021-04-17 08:06
help 一下帮助,你会发现:
X,Y — Sample grid pointsmatrices | vectors
Sample grid points, specified as real matrices or vectors.
If X and Y are
matrices, then they contain the coordinates of a full grid (in meshgrid format).
Use the meshgrid function to
create the X and Y matrices
together. Both matrices must be the same size.If X and Y are
vectors, then they are treated as a grid vectors. The values in both vectors
must be strictly
monotonic and increasing.
也就是说 要求你的x,y严格单调,所以你的x是不符合要求的,因此报错追问那就只能进行两次插值来找某一个点了?追答不是一一对应的函数关系插值意义不大 检查你的X,Y数据看是否真的必须这样?
X,Y — Sample grid pointsmatrices | vectors
Sample grid points, specified as real matrices or vectors.
If X and Y are
matrices, then they contain the coordinates of a full grid (in meshgrid format).
Use the meshgrid function to
create the X and Y matrices
together. Both matrices must be the same size.If X and Y are
vectors, then they are treated as a grid vectors. The values in both vectors
must be strictly
monotonic and increasing.
也就是说 要求你的x,y严格单调,所以你的x是不符合要求的,因此报错追问那就只能进行两次插值来找某一个点了?追答不是一一对应的函数关系插值意义不大 检查你的X,Y数据看是否真的必须这样?
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯