summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--normalize.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/normalize.m b/normalize.m
index 620db1c..44f2e7b 100644
--- a/normalize.m
+++ b/normalize.m
@@ -1,5 +1,6 @@
function n = normalize(data)
- assert(size(data, 1) > 1)
+ if (size(data, 1) == 1)
+ data = data';
_min = repmat(min(data), size(data, 1), 1);
_max = repmat(max(data), size(data, 1), 1);