changeset 70:430f958f007c

showalgo.m: restore hack for final iteration
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 20 May 2016 08:38:10 -0400
parents 456e3f722147
children 7bcf3d503d33
files talk/code/showalgo.m
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/talk/code/showalgo.m
+++ b/talk/code/showalgo.m
@@ -50,6 +50,10 @@
   imshow(imgH);
   pause
 
+  if iter == length(Am)
+    break
+  endif
+
   ## Check the left side
   imgLeft = imgH;
   red = imgH(:, :, 1);