Textbooks.elsevier.com - tools for all your teaching needs.

15) We have seen that by default, when using built-in functions such as sum and prod on matrices, MATLAB will perform the function on each column. A dimension can also be specified when calling these functions. MATLAB refers to the columns as dimension 1 and the rows as dimension 2, such as the following: >> sum(mat,1) >> sum(mat,2) ................
................