To illustrate, suppose I want to change the {2,2} element of a matrix. If I know the replacement value, I can just make the replacement.
ReplacePart[{{1, 2}, {3, 4}}, {2, 2} -> 5]
But what if I need to process the value to get its replacement? Of course, I could create a symbol and process it.
mA = {{1, 2}, {3, 4}}
mA[[2, 2]] = f[mA[[2,2]]]
But I'd rather work directly with the value and not create a new symbol. Possible?
MapAt. – Kuba Nov 26 '15 at 16:00mA[[2, 2]] = mA[[2, 2]] // Function[x, x + 1]; mA– garej Nov 26 '15 at 20:06