Imagine there is a matrix as below
de= {{311.026, 1.06259}, {311.033, 1.6268}, {311.054,
1.0648}, {311.051, 1.06541}, {311.059, 1.0667}, {311.092,
1.06786}, {311.143, 1.06894}, {311.193, 1.06995}, {311.234,
1.07147}, {311.333, 1.07193}, {311.445, 1.07341}, {311.408,
1.07418}, {311.62, 1.07813}, {311.708, 1.07748}, {313.5,
1.08496}, {314.326, 1.09059}, {315.637, 1.09552}, {316.831,
1.10034}, {318.217, 1.10477}, {319.731, 1.1092}, {325.399,
1.12402}, {334.126, 1.13943}, {342.683, 1.15173}}
I want to divide the second element of all {} is divided by a number lets say 2 what is the best way to do that?
de = de/{1,2}
?
Thanks a lot
{#1, #2/2} & @@@ {{a, b}, {c, d}}
gives{{a, b/2}, {c, d/2}}
. $\endgroup$