How do I select range of elements on a 2D lists of data and replace the selected elements with a specified range of values. For example if
K = {{4, 6, 7, -8, 2, 1, 9, 6, 10, 1}, {2, 2, 3, 9, -10, 3, 4, 7, 8, 1}, {5, 4, 2, 1, 10, 8, 7, 3, -9, 5}}
I like to select elements in the range of (5 to 10) and range of (-5 to -10), replace all the selected with range of (1 to 3) and (-1 to -3) respectively.