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
- Follow-Ups:
- Re: A matrix element specified by a vector?
- From: Ulrich Arndt <ulrich.arndt@data2knowledge.de>
- Re: A matrix element specified by a vector?
- From: Bob Hanlon <hanlonr357@gmail.com>
- Re: A matrix element specified by a vector?
- From: Sseziwa Mukasa <mukasa@gmail.com>
- Re: A matrix element specified by a vector?