ts1 = csvread('C:\Users\nexes\Desktop\New_article\python_code\data\tsEnergyConsumption.csv', 0, 1, [0,1,365*24,1]);
ts1 = ts1(1:31*24*2)
matrix = reshape(ts1, 62, 24)
X = matrix(1:61, 1:22)
Y = matrix(1:61, 23:24)
W = inv(X'*X)*X'*Y
x = matrix(62, 1:22)
y = matrix(62, 23:24)
y_pred = x*W
cla
scatter([1,2],y)
hold on
scatter([1,2],y_pred)