If A is a multidimensional array, sum(A) will operate along the 1st array dimension whose size is not equal to 1 and will treat all the elements as vectors.sum(A) will return a row vector which will have some of each column if A is a matrix.sum(A) will return the sum of the elements if A is vector. the size is not equal to 1 (It will consider the first dimension which is non-singleton).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |