This toolbox implements automatic/algorithmic differentiation for matlab using sparse representation for jacobians.
For example usage/syntax, check
For more detailed explanation and list of supported files, read the documentation.