Services & Resources / Wolfram Forums
MathGroup Archive
*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
  • Subject: [mg28409] Re: matrix
  • From: "Paul Lutus" <nospam at>
  • Date: Mon, 16 Apr 2001 03:29:04 -0400 (EDT)
  • References: <9bb759$>
  • Sender: owner-wri-mathgroup at

"Su Su Win" <susuwin at> wrote in message
news:9bb759$92p at
> Hello,
> How can I make a matrix (4000x1220) with zeros except that all the values
> 216th to 220th rows are ones.

Here is the basic idea (scaled down):

Table[If[y > 3 && y < 7,1,0],{y,1,16},{x,1,16}]//MatrixForm

Paul Lutus

  • Prev by Date: Re: matrix
  • Next by Date: Re: Mapping a scalar against a list
  • Previous by thread: Re: matrix
  • Next by thread: Re: matrix