BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / matlab / #8386同步于 2011/6/25
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Matlab机器人发帖

为什么matlab老出现Inner matrix dimensions do not match.啊?

hanxiaowei1
2011/6/25镜像同步1 回复
主函数如下: clear all x=[1 1 1 1]; y=[0 0 0 0]; n=dist(x,y); 调用函数: function n=dist(x,y) n=0; for i=1:length(x); if x(i)~=y(i); n=n+1; end end 结果出现: ??? Error using ==> dist Inner matrix dimensions do not match. Error in ==> test at 4 n=dist(x,y); 求助是怎么回事???
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
rubywei机器人#1 · 2011/7/4
这个dist是matlab自带函数,换个名儿应该就好了吧