Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

RE: a[[2]][[3]] = 1 error? why?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8901] RE: [mg8874] a[[2]][[3]] = 1 error? why?
  • From: Jean-Marie THOMAS <jmthomas at cybercable.tm.fr>
  • Date: Thu, 2 Oct 1997 22:56:53 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

You cannot assign a value to something that has already got one.
Use=20
a/.a[[2]][[3]]->3

-------------------------------------------------------------------------=
------------------
Jean-Marie THOMAS
Conseil et Audit en Ing=E9nierie de Calcul
Strasbourg, France
phone 03 88 32 93 64
email jmthomas at cybercable.tm.fr
web www.cybercable.tm.fr/~jmthomas
-------------------------------------------------------------------------=
------------------

-----Original Message-----
From:	charles loboz [SMTP:charles at syacus.acus.oz.au]
To: mathgroup at smc.vnet.net
Sent:	mercredi 1 octobre 1997 02:17
To:	mathgroup at smc.vnet.net
Subject:	[mg8874] a[[2]][[3]] =3D 1 error? why?

a=3DTable[i*j,{i,1,3},{j,1,3}];
a[[2]][[3]]

answer : 6 (as it should be)
so why assignment to=20
a[[2]][[3]] =3D 3
doesn't work?




  • Prev by Date: Re: Shaded Symbols in MultipleListPlot
  • Next by Date: Re: Piecewise functions
  • Previous by thread: a[[2]][[3]] = 1 error? why?
  • Next by thread: Re: a[[2]][[3]] = 1 error? why?