Info
此问题已关闭。 请重新打开它进行编辑或回答。
Reference to a cleared variable
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!