Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Reference to a cleared variable

1 visualización (últimos 30 días)
Harvey Hu
Harvey Hu el 5 de Jul. de 2016
Cerrada: Stephen23 el 5 de Jul. de 2016
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!

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by