summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Klemkow <j.klemkow@wemelug.de>2012-05-10 13:48:23 +0200
committerJan Klemkow <j.klemkow@wemelug.de>2012-05-10 13:48:23 +0200
commit49f8eec35fa45e1762f1ad71ba32e4c8ef283582 (patch)
tree25864e2173d48dbed9531de8c984e1fd6ae00b58
parent88ffa1b0209419f3eddd55312f80fbd93de033a3 (diff)
downloaddmc-49f8eec35fa45e1762f1ad71ba32e4c8ef283582.tar.gz
dmc-49f8eec35fa45e1762f1ad71ba32e4c8ef283582.tar.bz2
dmc-49f8eec35fa45e1762f1ad71ba32e4c8ef283582.zip
calc_error: Fix output.
-rw-r--r--calc_error.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/calc_error.m b/calc_error.m
index 0c27b2b..7fcf0e1 100644
--- a/calc_error.m
+++ b/calc_error.m
@@ -3,8 +3,7 @@ function calc_error(name, data, pred)
quad = quad_error(data, pred);
total = total_error(data, pred);
- printf('%15s quad: %9d\n', name, quad);
- printf('%15s total: %9d\n', name, total);
+ printf('%10s quad: %d\t total: %d\n', name, quad, total);
plot((sum(abs(data - pred))), '-ob;unsorted;');
hold on;