echo on

load temperature                   %Load Temperature Data
L = 2;                             %Wall Width
x = 0:.1:L;                        %Create wall vector 
tin = 72;                          %Inside Temperature "Tin" 
[xx, temp2] = meshgrid(x, temp);   %Grid Tout and wall vector
tx = (tin - temp2).*xx./L + temp2; %Find temp in wall
surf(xx, time, tx)                 %Show the surface
        
xlabel('Distance through the wall (Ft)')
ylabel('Time (24 hour clock)')
zlabel('Temperature ( T_x )')
title('\bf{Temperature gradient through a wall}')
        
echo off