Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2001

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

Search the Archive

Re: diagonal matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29110] Re: [mg29095] diagonal matrix
  • From: BobHanlon at aol.com
  • Date: Wed, 30 May 2001 05:50:25 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 2001/5/29 3:01:46 AM, susuwin at post.kek.jp writes:

>How can I make diagonal matrix (1153x1153) with 1 at diagonal?

Looking up DiagonalMatrix in on-line help leads to

n = 5; (* 1153 in your case *)

dm = DiagonalMatrix[Table[1, {n}]];


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Re: diagonal matrix
  • Next by Date: Re: diagonal matrix
  • Previous by thread: Re: diagonal matrix
  • Next by thread: Re: diagonal matrix