Temperature measurements across the enclosure | SURF 2016

I have measured the transfer function of temperature fluctuations inside the enclosure to that of the temperature fluctuations outside. The transfer function has been estimated by using 'tfestimate' which is library function in Matlab and which estimates the transfer function based on Welch's method. The attached plots shows the transfer function of the temperature inside the enclosure to that of outside temperature.

In order to determine a relation between temperature inside the enclosure to that of the outside temperature, I have calculated the mean squared coherence. I have used Matlab's 'mscohere' library function which uses Welch's method to calculate the coherence. Attached plot shows the coherence between the temperature across the enclosure.

filename='2315on5july.dat';
data=importdata(filename);
%temperature data outside the enclosure on channel 2
data1=data(:,2);
%temperature data inside the enclosure on channel 3
data2=data(:,3);
%sampling frequency in Hz
fs=100;