Introduction
Applying functions on matrices helps you quickly calculate values like sums or averages for rows or columns without writing loops.
You want to find the sum of each row in a table of numbers.
You need the average value of each column in a data set.
You want to apply a custom calculation to every row or column.
You want to check the maximum or minimum value in each row or column.