Path: news.mathworks.com!not-for-mail
From: "Flavio Eripi" <didad30@libero.it>
Newsgroups: comp.soft-sys.matlab
Subject: Fill a matrix
Date: Wed, 1 Aug 2007 06:58:44 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 7
Message-ID: <f8pav4$pv1$1@fred.mathworks.com>
Reply-To: "Flavio Eripi" <didad30@libero.it>
NNTP-Posting-Host: webapp-01-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185951524 26593 172.30.248.36 (1 Aug 2007 06:58:44 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 1 Aug 2007 06:58:44 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1071093
Xref: news.mathworks.com comp.soft-sys.matlab:422002


Is there any command to put the values outside the diagonal of a matrix?
For example if I want this matrix:
a= [1,5,5,5;
5,1,5,5;
5,5,1,5;
5,5,5,1];
Thank you