I want to replace some elements in list.
Assume that we have
A={{1,2,3,4},
{5,6,7,8},
{9,10,11,12},
{13,14,15,16}}
and we want to replace elements A[[i,j]] to 30 such that [i,j] is in {(2,2),(2,3),(3,2),(3,3)}
Then, the result is following:
B={{1,2,3,4},
{5,30,30,8},
{9,30,30,12},
{13,14,15,16}}
We can do it using Replace but, as you know, it is very cumbersome and it is not a good idea if the list has large dimension.
If you have fancy method for this, please let me know.
Thanks
SparseArray. – Karsten7 Jul 25 '15 at 14:33