Info

此问题已关闭。 请重新打开它进行编辑或回答。

Reference to a cleared variable

1 次查看(过去 30 天)
Harvey Hu
Harvey Hu 2016-7-5
关闭: Stephen23 2016-7-5
Hi friends,
After I runned the following program(part of all):
for l = 153:1:227
figure;
QQ = mouse(:,:,l);
imshow(QQ,[]);
hold on;
seg_result(:, 3) = round(seg_result(:, 3));
for i = 1:1:1519
if seg_result(i, 3) == l
plot(seg_result(i, 2),seg_result(i, 1),'.');
hold on;
end
end
for j = 1:1:1510
if I(j, 3) == l
plot(I(j, 2),I(j, 1),'.r');
end
end
end
I saw an error:
Reference to a cleared variable seg_result.
Error in segment seg_result(:, 3) = round(seg_result(:, 3));
Please help me if you can deal with it,thank you!

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by