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!