matlab中加入pause(2)后程序就停止了,不再继续执行了

程序如下:

figure;imshow(X);hold on;
pause(2);
for i=1:ny
for j=1:nx
plot(result(i,j,1),result(i,j,2),'r+');
hold on;
pause;
end
end

应该不是pause(2)的原因,而是循环体里面的pause吧,加个比较小的数值试试。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-12-13
你下面的那个pause要给出暂停的时间啊
相似回答