Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg28403] Re: matrix
  • From: Erk Jensen <Erk.Jensen at cern.ch>
  • Date: Mon, 16 Apr 2001 03:28:56 -0400 (EDT)
  • Organization: CERN http://www.cern.ch
  • References: <9bb759$92p@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Su Su Win wrote:
> 
> Hello,
> 
> How can I make a matrix (4000x1220) with zeros except that all the values at
> 216th to 220th rows are ones.
> Thank you very much in advance.
> Regards, Win

m=Table[0,{mrows},{mcols}];
m[[216]]=Table[1,{mcols}];
m[[220]]=Table[1,{mcols}];

Ciao
     -erk-


  • Prev by Date: Re: List Integration
  • Next by Date: RE: Flip a rule
  • Previous by thread: matrix
  • Next by thread: Re: matrix