MathGroup Archive 2011

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

Search the Archive

A matrix element specified by a vector?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg123340] A matrix element specified by a vector?
  • From: Ralph Dratman <ralph.dratman at gmail.com>
  • Date: Fri, 2 Dec 2011 07:21:01 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

I am wondering if there is a more compact way to express the following idea:

myMatrix[[   myVector[[1]],  myVector[[2]]   ]]  =  myScalar

This keeps coming up. Did I miss the quick and easy way to do it? Of
course it looks even uglier in 3 dimensions.

Thank you.

Ralph Dratman



  • Prev by Date: Re: How to integrate a function over a polygon
  • Next by Date: using TeXForm to format user defined latex functions
  • Previous by thread: Re: problem in minimization of a matrix
  • Next by thread: Re: A matrix element specified by a vector?