You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pSensor_model.m
    path of file: ./repos/AUVForwardDynamics/sensorModels
    
    the code of the file until where you have to start completion: function p_meas = pSensor_model( depth )
%PSENSOR_MODEL returns measured pressure at given height
%   depth : Depth of c.g from surface of water

global density; % density of water
global gravity;
global Patm;

    
function p_meas = pSensor_model( depth )
%PSENSOR_MODEL returns measured pressure at given height
%   depth : Depth of c.g from surface of water

global density; % density of water
global gravity;
global Patm;

p_meas = depth + 0.05*randn;
% p_meas = Patm + density*gravity*depth + 0*randn;

end