clear
tempData = csvread('D:\K11AE1\OneDay.csv');
h = 1.6;
w = 1.2;
l = 1.8;
alpha = 40;
dt = 1;
M = 0.25;
Theater = 40;
Tin = 5;
Uroof = 0.0179;
RTroof = 56;
Uwall = 0.0067;
Awall = 10.2;
Aroof = 2.82;
c = 1005.4;
m = 4.90;
i=1;
t(i) = i+1;
Tin(i) = i+19;
heaterState = 1;
for i=1:dt:86399
if tempData(1,1)<=i
Tout = tempData(1,3);
elseif tempData(2,1)<=i
Tout = tempData(2,3);
elseif tempData(3,1)<=i
Tout = tempData(3,3);
elseif tempData(4,1)<=i
Tout = tempData(4,3);
elseif tempData(5,1)<=i
Tout = tempData(5,3);
elsei