%
% Calculate the pressure of a column of air
%
% Author: Xin-Zhong Liang @ UMD
% Coded:  2012/08/22
%
  g = 9.8;            % acceleration due to gravity [m/s2]
  rho = 1.25;         % average air density [kg/m3]
  h = 1000;           % air column height [m]
  p = rho * g * h;    % pressure of the column [Pa]
  disp['Pressure [Pa] = `]
  disp(p)