Hello,
I am working on a project that, without going into unnecessary detail, requires me to calculate the mean of each row in a 64,500x17 matrix. The eventual aim is to populate a 17x1 vector for use in kmeans. My instructor does not want me to use a for statement for efficiency reasons. I am thinking of splitting the matrix into 17 64,500x1 vectors, but I am not sure of how to do this, or if there's another, more efficient way. Any help would be greatly appreciated.
I am working on a project that, without going into unnecessary detail, requires me to calculate the mean of each row in a 64,500x17 matrix. The eventual aim is to populate a 17x1 vector for use in kmeans. My instructor does not want me to use a for statement for efficiency reasons. I am thinking of splitting the matrix into 17 64,500x1 vectors, but I am not sure of how to do this, or if there's another, more efficient way. Any help would be greatly appreciated.