MathGroup Archive 2012

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

Search the Archive

ReplacePart, Multiple replacements in one time

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125789] ReplacePart, Multiple replacements in one time
  • From: Andrey Demidov <andrey.demidov at gmail.com>
  • Date: Mon, 2 Apr 2012 04:27:27 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

I'm just wondering if it is possible to make n different replacements in one command?

Something like this:

>> a = {{1, 2}, {3, 4}}
>> ReplacePart[a, 1 -> a[[1]] * 2, 2 -> a[[2]] + 5]



  • Prev by Date: enigma
  • Next by Date: Re: ChartElements in BarChart doesn't plot negatives any ideas?
  • Previous by thread: enigma
  • Next by thread: Re: ReplacePart, Multiple replacements in one time