Note that this reference documentation is identical to the help that is displayed in MATLAB when you type “help keyval”.

  KEYVAL returns the value that corresponds to the requested key in a
  key-value pair list of variable input arguments
 
  Use as
    [val] = keyval(key, varargin)
 
  See also VARARGIN