This is an example of my matrix (actually I have hundreds of columns and not just 4 as here).
1 2 3 4
4 5 6 8
7 8 9 8
2 3 7 4
5 7 2 9
3 5 1 7
1 0 0 1
I want to create a new matrix that contains only the columns whose last number is 1. The result would be this one:
1 4
4 8
7 8
2 4
5 9
3 7
1 1
To obtain this example I just selected manually the 2 columns to show, but, since I have a huge matrix and I can't write and check every single column...