| 查看: 4577 | 回复: 2 | |||
xiashaoyan新虫 (正式写手)
|
[求助]
MATLAB 使用interp2函数时,报错The grid vectors do not define a grid of point 已有1人参与
|
|
现在使用interp2进行插值,但是出现报错,看了半天也不知道哪儿有错误,请教各位虫友,运行的语句为 Iorig_max=1000,Jorig_max=999,dx=2,dy=3,im_orig是一个1000*999的矩阵 [im_origX,im_origY] = meshgrid(1:Iorig_max,1:Jorig_max); [im_compX,im_compY] = meshgrid(1:dx:Iorig_max,1:dy:Jorig_max); 然后运行下面语句就出错了im_comp = interp2(im_origX,im_origY,im_orig,im_compX,im_compY,'linear'),报错结果为: Error using griddedInterpolant The grid vectors do not define a grid of points that match the given values. Error in interp2>makegriddedinterp (line 211) F = griddedInterpolant(varargin{:}); Error in interp2 (line 134) F = makegriddedinterp(X, Y, V, method,extrap); Error in pm_explicit (line 60) im_comp = interp2(im_origX,im_origY,im_orig,im_compX,im_compY,'linear'); 报错的意思好像是没有定义一个点与一致值匹配,但是我有点不理解,这个哪儿不匹配呢?甚至不解。 |
» 猜你喜欢
对氯苯硼酸纯化
已经有3人回复
求助:我三月中下旬出站,青基依托单位怎么办?
已经有12人回复
不自信的我
已经有12人回复
假如你的研究生提出不合理要求
已经有5人回复
所感
已经有4人回复
论文终于录用啦!满足毕业条件了
已经有28人回复
要不要辞职读博?
已经有7人回复
北核录用
已经有3人回复
实验室接单子
已经有3人回复
磺酰氟产物,毕不了业了!
已经有8人回复
mygt_hit
专家顾问 (职业作家)
-

专家经验: +362 - 数学EPI: 3
- 应助: 438 (硕士)
- 贵宾: 0.019
- 金币: 19571.1
- 散金: 5130
- 红花: 135
- 沙发: 3
- 帖子: 4938
- 在线: 990.5小时
- 虫号: 1489764
- 注册: 2011-11-13
- 性别: GG
- 专业: 结构工程
- 管辖: 土木建筑

2楼2015-07-15 14:31:24
xiashaoyan
新虫 (正式写手)
- 应助: 10 (幼儿园)
- 金币: 2574.9
- 散金: 30
- 红花: 10
- 帖子: 498
- 在线: 184.1小时
- 虫号: 2507802
- 注册: 2013-06-14
- 专业: 计算机软件
3楼2015-07-15 17:17:19












回复此楼