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-