i m getting error undefined function or method "zero" for input argument of type double?help!
Ältere Kommentare anzeigen
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
Antworten (1)
Torsten
am 13 Nov. 2014
1 Stimme
Use "zeros" instead of "zeroes"
Best wishes
Torsten.
Kategorien
Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!