Re: matrix
- To: mathgroup at smc.vnet.net
- Subject: [mg28394] Re: matrix
- From: "Carl K. Woll" <carlw at u.washington.edu>
- Date: Mon, 16 Apr 2001 03:28:46 -0400 (EDT)
- Organization: University of Washington
- References: <9bb759$92p@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Win,
How about
mat=Table[0,{4000},{1220}];
mat[[{216,217,218,219,220},All]]=1;
mat
or
mat=PadRight[Table[1,{5,1220}],{4000,1220},0,{215,0}]
Carl Woll
Physics Dept
U of Washington
"Su Su Win" <susuwin at post.kek.jp> wrote in message
news:9bb759$92p at smc.vnet.net...
> 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
>
>
>
>