Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Modifying an entry in array specified by a list of arbitrary length
Replies: 3   Last Post: Jul 5, 2012 6:17 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
samid.hoda@gmail.com

Posts: 4
Registered: 7/4/12
Modifying an entry in array specified by a list of arbitrary length
Posted: Jul 4, 2012 3:31 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

I want to edit an element whose position is specified by an arbitrary list that is a result of a computation (the list is not of fixed length). Something like

i = {1,2,3}
Extract[X,i]+=1

except that Extract passes X by value instead of by reference. Anyone have any ideas?

Thanks,
Sam




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.