MathGroup Archive 2001

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

Search the Archive

Re: matrix


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
>
>
>
>




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