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 1999

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

Search the Archive

Re: problem with Part function

  • To: mathgroup at
  • Subject: [mg18196] Re: [mg18172] problem with Part function
  • From: "David Park" <djmp at>
  • Date: Mon, 21 Jun 1999 22:50:38 -0400
  • Sender: owner-wri-mathgroup at

>Just a little problem:
>I've a matrix of zeros, say:
>then, I've a point in xy axys,
>now, I want the position {3,3} of matrix becomes 1;
>if I write
>mat[[xy]]=1; or mat[[{3,3}]]=1; it doesn't work; only mat[[3,3]]=1 
>works, but I don't want rewrite all.
>I think I've to use something like Map, Thread, Apply or so, but I don't 
>know what and how exactely;
>please, someone help me.
>Dario Casubolo
>email: bubbola at


Apply Sequence to the list to turn it into arguments for mat part.



David Park
djmp at

  • Prev by Date: Function definition
  • Next by Date: Re: Mathematica 2.2 on iMac?
  • Previous by thread: Re: problem with Part function
  • Next by thread: Re: problem with Part function