Seawater density from salinity, temperature and pressure

From practical salinity, temperature and pressure values, the seawater density is computed.
1.2K Downloads
Updated 18 Jan 2021

View License

This function computes the seawater density (kg/m3).
Inputs:
S = practical salinity (psu).
T = temperature (ºC).
p = pressure (bars).
Outputs:
rho = seawater density (kg/m3).
rhodif = seawater density difference (kg/m3).

Cite As

Gabriel Ruiz-Martinez (2026). Seawater density from salinity, temperature and pressure (https://www.mathworks.com/matlabcentral/fileexchange/85900-seawater-density-from-salinity-temperature-and-pressure), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020b
Compatible with R2008b to R2020b
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0