storing data into a vector within nested for loop

im = imread(im);
im = im2bw(im);
truths = sum(sum(im));
s = size(im);
xtot = s(2);
ytot = s(1);
for xcount = 1:xtot,
for ycount = 1:ytot,
if im(ycount,xcount) == 1
sqrt((xcount-coord(2)).^2+(ycount-coord(1)).^2)
end
end
end
end

답변 (0개)

이 질문은 마감되었습니다.

질문:

2012년 3월 19일

마감:

2021년 8월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by