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 http://cdiac.ornl.gov/oceans/co2rprt.html. 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 ...