[gmsl,year_vec] = get_gmsl retrieves global mean sea level data from 1992 to present. get_gmsl_ns is functionally identical, but with seasonal signals removed.
gmsl = global mean sea level array
year_vec = corresponding years
[sealevels,datearray] = get_gmsl;
The example file provided in the package (global_mean_sea_level_plotter.m) uses get_gmsl and get_gmsl_ns to plot globally-averaged sea levels from 1992 to present and compute a linear least-squares fit for to the data.
Data are retrieved from the University of Colorado Sea Level Research Group website, http://sealevel.colorado.edu/. If you use this data set, please cite the following:
Nerem, R. S., D. Chambers, C. Choe, and G. T. Mitchum. "Estimating Mean Sea Level Change from the TOPEX and Jason Altimeter Missions." Marine Geodesy 33, no. 1 supp 1 (2010): 435.
An internet connection is required for use of these functions.