If I have a matrix A(n,m,2) i.e. a two pages matrix, and a vector B(n,1), how should I write the expression for the j-th element of b, if I want B to contain the sum of the elements of the rows of the first page of A?
MATLAB: Summin elements on the rows of a specific page of a matrix
arrayindexindexingmatrixpagessum
Related Question
- I have a nxn matrix. How to get two variables [m,n] corresponding to the elements of the row of the matrix.(Kindly see the image)
- Sum slices of 3-d matrix
- Appending Arrays at the END!
- FInd vector in matrix
- How to pick the elements in a vector with row coordinates satisfying a criterion determined by another vector
- Average every n*n elements in a two dimensional matrix
- Sum elements of matrix aside from the first row or column
Best Answer