Seawater density from salinity, temperature and pressure

From practical salinity, temperature and pressure values, the seawater density is computed.

You are now following this Submission

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 .

General Information

MATLAB Release Compatibility

  • Compatible with R2008b to R2020b

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0