| MATLAB Central > MATLAB Newsreader > Matix maths |
|
|
|
Does anyone know how I can sum all the diagonals of a matrix and get a vector of the results? |
|
On 11/15/2012 2:09 PM, Daniel Robbins wrote: |
|
On 11/15/2012 2:09 PM, Daniel Robbins wrote: |
|
"Daniel Robbins" <d.w.e.robbins@gmail.com> wrote in message <k83i5d$rqg$1@newscl01ah.mathworks.com>... |
|
A=[18 36 24 12 |
|
[m n]=size(A); |
|
Thanks to everyone who gave solutions, good to have a range of options to pick from!! |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
