diff options
Diffstat (limited to 'run_tests.m')
-rw-r--r-- | run_tests.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/run_tests.m b/run_tests.m index ae504b8..57cb722 100644 --- a/run_tests.m +++ b/run_tests.m @@ -37,9 +37,9 @@ bar(terr); [min_err, err_idx] = min(err); printf('global min. error: %d\n', sum(min_err)); printf('local min count:'); -local_min_count=[]; +local_min_count=zeros(1, size(err, 1)); for i=1:size(err,1) - local_min_count = [ local_min_count sum(sum(err_idx == i)) ]; + local_min_count(i) = sum(sum(err_idx == i)); printf(' %d', local_min_count(i)); end printf('\n'); |