Calculating results in matrix field.