From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: cross diagonal enteries
Date: Thu, 12 Aug 2010 17:18:04 +0000 (UTC)
Organization: Ghulam Ishaq Khan Institute
Lines: 12
Message-ID: <i41acc$egs$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1281633484 14876 (12 Aug 2010 17:18:04 GMT)
NNTP-Posting-Date: Thu, 12 Aug 2010 17:18:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 731629
Xref: comp.soft-sys.matlab:661501

Hi All,

I need to find the sum of cross diagonal entries.

If            A =[x11 , x12, x13; 
                    x21 , x22, x23;
                    x31 , x32, x33];

then I need the sum of x13,x22,x31.
I need to do this for a general N by N matrix.

Best Regards.