MATLAB Program Developed for CO2 System Calculations. ORNL/CDIAC-105b.



This is a MATLAB-version of the original CO2SYS for DOS. CO2SYS calculates and returns a detailed state of the carbonate system of oceanographic water samples, if supplied with enough input. Use this function as you would use any other Matlab inline funtion, i.e., a=func(b,c). For extended details on using the function, please refer to the enclosed help by typing "help CO2SYS" in Matlab.
For details on the internal workings of the function, please refer to the original publication of Lewis and Wallace at Note that this function allows for the input of vectors. This means that you can calculate many samples at once. Each of these samples can be processed with individual salinities, temperatures, pH scales, dissociation constants, etc.


  • Software

Cite this