I am trying to copy multiple elements from a matrix, but not a whole row, not a single element.
For example, in the following matrix:
a = 1 2 3 4 5 6 7 8 9 0
How to copy only the following data?
b = 1 3 5
i.e. rows 1: 3 only in column 1 ... I know that you can delete the entire column as follows:
b = a(:,1)
... and I appreciate that I could just do it and then flush the last two lines, but I would like to use a more ordered code, as I am running a very resource-intensive solution.
source share