MathGroup Archive 2001

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

Search the Archive

Re: matrix


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