Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Matix maths
Replies: 6   Last Post: Nov 16, 2012 4:50 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Daniel Robbins

Posts: 27
Registered: 6/12/12
Matix maths
Posted: Nov 15, 2012 3:09 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Does anyone know how I can sum all the diagonals of a matrix and get a vector of the results?

For example if a had the following matrix

18 36 24 12
12 24 16 8
6 12 8 4

I would get a vector of:

18 48 54 40 16 4

All help appreciated!
Dan



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.