I have the next matrix (Dimensions: {178, 178, 3}):
{{-1.22,2.44,3.14},{1.22,0.54,0.01},{1.21,-0.14,-2.31},{0.21,1.24,-0.42},...,{1.24,-0.25,1.34},{3.14,-3.14,-2.89}}
I want to add some quantity to each negative number of the matrix. Is it possible do that with control strucuture in Mathematica? How can I do it? thnk!
mat /. x_?Negative :> x + 5? – kglr Oct 15 '16 at 21:23