%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%    Compute some simple statistics.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Pressure and Temperature "observations".
p = [ 1020 1013 1015 1028 1020 1001 ]
T = [   15   17   21   18   17   22 ]

pause
% Mean values
pbar = mean(p)
Tbar = mean(T)

pause
% Standard deviations
sigma_p = std(p)
sigma_T = std(T)

pause
% Covariance and correlation
mu_pT = cov(p,T)
rho = corrcoef(p,T)

return

