[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
monitoring iterations
From: |
antonio palestrini |
Subject: |
monitoring iterations |
Date: |
Mon, 20 Aug 2007 00:02:23 +0200 |
Recently I had to run very long
iterations so I wanted to display the numbers
of the loops (every 100 iterations) in order to figure out how long I
have to wait.
Something like
niter = 10^6;
for t = 1:niter
[do something];
if rem(niter,100) == 0
disp(t);
endif
endfor
I realized that it is useless since octave (2.1.72 and 2.9.13 on a
mac) ends the loop
before to print the numbers. In other terms, it prints the loop
numbers only at the end of the iteration and not during it.
Did anyone note this behavior and know how to solve it?
Thanks
Antonio
- monitoring iterations,
antonio palestrini <=