Re: A matrix element specified by a vector?
- To: mathgroup at smc.vnet.net
- Subject: [mg123358] Re: A matrix element specified by a vector?
- From: Sseziwa Mukasa <mukasa at gmail.com>
- Date: Sat, 3 Dec 2011 04:13:18 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201112021221.HAA01882@smc.vnet.net>
On Dec 2, 2011, at 7:21 AM, Ralph Dratman wrote: > 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. myMatrix[[Sequence@@myVector]] = myScalar Regards, Sseziwa=
- References:
- A matrix element specified by a vector?
- From: Ralph Dratman <ralph.dratman@gmail.com>
- A matrix element specified by a vector?