How can one get the second value of every array inside the outside array?
I have the following data data = {{10, 20}, {30, 40}, {50, 60}};
I want to extract 20, 40 and 60 from it. I have tried the following:
data = {{10, 20}, {30, 40}, {50, 60}};
data2 = data[[{1, 2, 3}]][[2]]
{30, 40}
But that doesn't seem to work.
Partdocumentation so it is a good reason to close. Marking it a duplicate will not help I think, It will be hard to find this question in the future, with this title - impossible. – Kuba Mar 05 '14 at 12:41