Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to construct symmetric matrix from just a one half

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110404] Re: How to construct symmetric matrix from just a one half
  • From: Alexei Boulbitch <alexei.boulbitch at iee.lu>
  • Date: Wed, 16 Jun 2010 05:41:56 -0400 (EDT)

Try this:
This is your initial matrix (or alike) in a form of a table

M = {{1, 0, 0, 0}, {2, 3, 0, 0}, {4, 5, 6, 0}, {7, 8, 9, 10}} // Grid


That is what you need:

Table[If[i > j, M[[i, j]], M[[j, i]]], {i, 1, Length[M[[1]]]}, {j, 1,
   Length[M[[1]]]}] // Grid

??


please help me with simple to apply function that will construct
symmetric matrix from given just a half matrix with diagonal.
Eg:

From:
1  0  0  0
2  3  0  0
4  9  5  0
2  2  3  4

To give:

1  2  4  2
2  3  9  2
4  9  5  3
2  2  3  4


-- 
Alexei Boulbitch, Dr. habil.
Senior Scientist
Material Development

IEE S.A.
ZAE Weiergewan
11, rue Edmond Reuter
L-5326 CONTERN
Luxembourg

Tel: +352 2454 2566
Fax: +352 2454 3566
Mobile: +49 (0) 151 52 40 66 44

e-mail: alexei.boulbitch at iee.lu

www.iee.lu

--

This e-mail may contain trade secrets or privileged, undisclosed or
otherwise confidential information. If you are not the intended
recipient and have received this e-mail in error, you are hereby
notified that any review, copying or distribution of it is strictly
prohibited. Please inform us immediately and destroy the original
transmittal from your system. Thank you for your co-operation.



  • Prev by Date: Re: Simplification question
  • Next by Date: Using Mathematica for Electrophysiology Data Analysis
  • Previous by thread: Re: How to construct symmetric matrix from just a one half
  • Next by thread: ListCorrelate (v 7.0)