Uses functions to process matrix data.