12-04-2015 02:09 PM
I have a matrix (let's call it D) with 20 rows (+ column name) and 2 columns. The matrix has been sorted in a particular way, and I want to read the first of every 4 values in the the first column to another matrix. The following code worked on a small "test" dataset (small enough that I could check the results manually), but is there a reason it could produce wrong results (for example, read a number twice from a particular set of four, but zero times from another set)?
In other words, does anyone see anything wrong with this code? Is there a better way of doing what I have done here?
Need further help from the community? Please ask a new question.