Wed 04 May 2011 09:41:00 AM UTC, original submission:
The values of the variables "num_col" and "ncc" change unexpectedly from 1000 to values such as 10, 48, or 49. Likewise, the values of the variables "num_row" and "nrr" change unexpectedly from 2 to 50, 10, or otherwise.
I did not update the values of these variables.
Furthermore, the following print statements are repeated unexpectedly.
printf('### Number of rows: %dn',num_row)
printf('### Number of columns: %dn',num_col)
printf('=== Number of rows: %dn',int2str(nrr))
printf('=== Number of columns: %dn',int2str(ncc))
The behavior of the script is nondeterministic, but is repeatable.
I executed the script with an input argument (filename of the log file).
process_sin_tb.m sin_tb.dat
The following is an extract from the terminal session of executing the GNU Octave script.
status = 0.00000000000000e+00
num_row = 10000
nrr = 10000
status = 0.00000000000000e+00
num_col = 2
ncc = 2
### Number of rows: 49
### Number of rows: 48
### Number of rows: 48
### Number of rows: 48
### Number of rows: 48
### Number of rows: 10
### Number of columns: 50
### Number of columns: 10
=== Number of rows: 52
=== Number of rows: 57
=== Number of rows: 32
=== Number of rows: 32
=== Number of rows: 52
=== Number of rows: 56
=== Number of rows: 32
=== Number of rows: 32
=== Number of rows: 52
=== Number of rows: 56
=== Number of rows: 32
=== Number of rows: 32
=== Number of rows: 52
=== Number of rows: 56
=== Number of rows: 32
=== Number of rows: 32
=== Number of rows: 52
=== Number of rows: 56
=== Number of rows: 32
=== Number of rows: 32
=== Number of rows: 49
=== Number of rows: 48
=== Number of columns: 53
=== Number of columns: 48
=== Number of columns: 32
=== Number of columns: 32
=== Number of columns: 49
=== Number of columns: 48
### ii is now: 2
### ii is now: 3
### ii is now: 4
### ii is now: 5
### ii is now: 6
### ii is now: 7
### ii is now: 8
### ii is now: 9
### ii is now: 10
### ii is now: 11
|