i m getting error undefined function or method "zero" for input argument of type double?help!
显示 更早的评论
b=uint8(rand(84,84)*256); a=b(1:end,1); [y,x]=size(b); dist=zeroes(1,x); for i=1:x c=b(:,i); d=(a-c).^2; dist(i)=sqrt(sum(d)); end
回答(1 个)
Torsten
2014-11-13
1 个投票
Use "zeros" instead of "zeroes"
Best wishes
Torsten.
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!