Path: news.mathworks.com!not-for-mail
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$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1281633484 14876 172.30.248.37 (12 Aug 2010 17:18:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 12 Aug 2010 17:18:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 731629
Xref: news.mathworks.com 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.