Sie sind auf Seite 1von 14

DATOS PROMEDIOS DE TEMPERATURA DEL MES DE MAYO JUNIO Y

JULIO

HORA CH3 CH5 CH8


00:00 12.6496667 15.979 5.65433333
01:00 11.8886667 15.682 5.21466667
02:00 11.378 15.378 5.09966667
03:00 10.895 15.070 5.08733333
04:00 10.6106667 14.755 5.17733333
05:00 10.3696667 14.617 5.20566667
06:00 10.198 14.180 5.293
07:00 10.5593333 13.974 6.83133333
08:00 11.395 13.862 9.43466667
09:00 13.9446667 13.998 18.4143333
10:00 19.6693333 14.230 27.643
11:00 24.194 14.569 31.7096667
12:00 27.1826667 14.955 33.2553333
13:00 28.5366667 15.410 32.3766667
14:00 28.651 15.892 29.862
15:00 27.1726667 16.296 24.6276667
16:00 23.9783333 16.550 17.8606667
17:00 21.346 16.720 15.0006667
18:00 19.4286667 16.841 11.905
19:00 17.7166667 16.805 9.44866667
20:00 16.367 16.761 8.438
21:00 15.1766667 16.629 7.66933333
22:00 14.448 16.453 6.86033333
23:00 13.4786667 16.226 6.2
PROMEDIO 17.1347917 15.4931111 13.9278889
36 TEMPERATURA PROMEDIO DEL MES DE MAYO JUNIO JULIO
34
32
30
28
26
24 CH3 CH5 CH8
TEMPERATURA ºC

22
20
18
16
14
12
10
8
6
4
2
0

HORAS

AJUSTE DE CURVA DE LOS DATOS CH3:


%% DATOS DE TEMPERATURA PROMEDIO - CH3
>> y = [12.649667 11.888667 11.378 10.895 10.610667
10.369667 10.198 10.559333 11.395 13.944667 19.669333
24.194 27.182667 28.536667 28.651 27.172667 23.978333
21.346 19.428667 17.716667 16.367 15.176667 14.448
13.478667];
>> x = 0:1:23;
>> P_8 = polyfit(x, y, 8)
>>Px_8 = polyval(P_8, x)
R2 = 0.9909

Ecuación:
3.2075 · 10−7 · 𝑥 8 − 3.277 · 10−5 · 𝑥 7 + 0.0013467 · 𝑥 6 − 0.028297 · 𝑥 5 + 0.31904 · 𝑥 4 − 1.8604 · 𝑥 3
+ 5.1139 · 𝑥 2 − 5.6114 · 𝑥 + 12.985

%% DETERMINACION DEL R^2


>> R2 = ((norm(Px_8-mean(y))) / (norm(y-mean(y))))^2
R2 = 0.990916091441678
>> plot(x, y, 'ro', x, y)
>> hold on
>> plot(x,Px_8,'k*',x,Px_8,'--k')
>> title('CH-3 (promedio)')
>> xlabel('Horas del Dia')
>> ylabel('Temperatura C' )
>> grid on
AJUSTE DE CURVA PARA CH-5

y=[15.979 15.682 15.378 15.07 14.755 14.617 14.18 13.974 13.862


13.998 14.23 14.569 14.955 15.41 15.892 16.296 16.55 16.72 16.841
16.805 16.761 16.629 16.453 16.226];
>> x=0:1:23;
>> P_5 = polyfit(x,y,5);
>> Px_5 = polyval(P_5,x);
>> R2=((norm(Px_5-mean(y)))/(norm(y-mean(y))))^2
%% DETERMINACION DEL R^2
R2 = 0.993575289599373
>> plot(x,y,'ro',x,y)
>> plot(x,Px_5,'k*',x,Px_5,'--k')
>> hold on
>> plot(x,y,'ro',x,y)
>> grid on
>> %%%PRIMERA DERIVADA
>> Der1=diff(Px_5)
>> plot(Der1,'k*','linestyle','-')
>> plot(Der1,'k*','linestyle','-')
>> Der2=diff(Der1)
>> plot(Der2,'k*','linestyle','-')
>> grid on
R2 = 0.9936
AJUSTE DE CURVA PARA CH-8

y=[5.654333333 5.214666667 5.099666667 5.087333333


5.177333333 5.205666667 5.293 6.831333333 9.434666667
18.41433333 27.643 31.70966667 33.25533333 32.37666667
29.862 24.62766667 17.86066667 15.00066667 11.90
9.448666667 8.438 7.669333333 6.860333333 6.2];
>> x=0:1:23;
>> P_10 = polyfit(x,y,10)
Px_10 = polyval(P_10,x);
>> R2=((norm(Px_10-mean(y)))/(norm(y-mean(y))))^2
R2 = 0.994819083627060
>> plot(x,y,'b+',x,y)
>> hold on
>> plot(x,Px_10,'ro',x,Px_10)

ECUACION:

y = - 1.267e-08*x^{10} + 1.4692e-06*x^{9} - 7.1691e-05*x^{8} +


0.0019065*x^{7} - 0.029912*x^{6} + 0.28029*x^{5} -
1.5224*x^{4} + 4.4805*x^{3} - 6.1745*x^{2} + 2.5488*x + 5.6629
R2 = 0.9948
HUMEDAD RELATIVA PROMEDIO DE LOS MESE DE MAYO-JUNIO-JULIO
%% ajuste de curva de CH-3%%

>> y=[51.38333333 52.45233333 53.35166667 54.774 56.145 57.37233333


58.48966667 59.865 60.95266667 60.517 54.402 45.48533333 40.124 36.41466667
33.08466667 31.722 33.25766667 36.95933333 40.4353333 44.118 46.42466667
48.30766667 49.10733333 50.06116667]';
>> x=0:1:23;
Px_10 = polyval(P_10,x);
>> R2=((norm(Px_10-mean(y)))/(norm(y-mean(y))))^2
R2 = 0.993567148122945
>> plot(x,y,'b+',x,y)
>> plot(x,Px_10,'ko',x,Px_10)
>> hold on
>> plot(x,y,'b*',x,y)
>> grid on
>> Dx1=diff(Px_10)
>> plot(Dx1,'k*')
>> grid on
>> Dx1=diff(Px_10);
>> Dx2=diff(Px_10,2);
>> plot(Dx2,'k*')
>> grid on
R2 = 0.9936
%% ajuste de curva de CH-5%%
>> y=[47.505 46.890 46.918 46.959 46.980 47.579 47.993 49.059 51.039 53.734
57.687 58.421 55.910 51.852 49.824 49.392 50.828 51.933 52.287 51.986 50.909
49.778 48.657 47.838];
>> x=0:1:23;
Px_10 = polyval(P_10,x);
>> R2=((norm(Px_10-mean(y)))/(norm(y-mean(y))))^2
R2 = 0.960297918266817
>> plot(x,y,'b+',x,y)
>> plot(x,Px_10,'ko',x,Px_10)
>> hold on
>> plot(x,y,'b*',x,y)
>> grid on
>> Dx1=diff(Px_10)
>> plot(Dx1,'k*')
>> grid on
>> Dx1=diff(Px_10);
>> Dx2=diff(Px_10,2);
>> plot(Dx2,'k*')
>> grid on
R2 = 0.9603
%% ajuste de curva de CH-8%%

>> y=[56.86233333 59.36533333 61.471 63.16033333 64.80566667 65.94766667


67.107 68.46566667 67.68166667 61.073 43.176 33.46233333 27.17666667
23.73766667 21.98133333 23.23166667 27.47433333 34.06166667 38.10633333
42.00033333 45.765 49.19333333 52.093 54.21433333];
>> x=0:1:23;
Px_10 = polyval(P_10,x);
>> R2=((norm(Px_10-mean(y)))/(norm(y-mean(y))))^2
R2 = 0.992323003388509
>> plot(x,y,'b+',x,y)
>> plot(x,Px_10,'ko',x,Px_10)
>> hold on
>> plot(x,y,'b*',x,y)
>> grid on
>> Dx1=diff(Px_10)
>> plot(Dx1,'k*')
>> grid on
>> Dx1=diff(Px_10);
>> Dx2=diff(Px_10,2);
>> plot(Dx2,'k*')
>> grid on
R2 = 0.9923