sum and prod are two more useful functions for matrices. If z is a vector, sum(z) is the sum of all the elements of the vector z: >> sum(z).
確定! 回上一頁