From eba92aa9214ab575c60a743b9abf87e3c2b9bb40 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 24 Apr 2012 09:06:12 +0200 Subject: Add matlab function that generates two matrices for price and quantity With one columns per product, and each row representing one day. --- get_products.m | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 get_products.m (limited to 'get_products.m') diff --git a/get_products.m b/get_products.m new file mode 100644 index 0000000..4e3b20c --- /dev/null +++ b/get_products.m @@ -0,0 +1,12 @@ +function A,B = get_products() + load train_noheader.csv + + A = zeros(42, 570); + B = zeros(42, 570); + for i = 1:42 + begin = 570 * (i-1) + 1; + ende = begin + 569; + A(i,:) = train_noheader(begin:ende,3)' + B(i,:) = train_noheader(begin:ende,4)' + end +endfunction -- cgit