I store integer values in a k × m matrix container. All I want is to subset another matrix according to the values in this matrix. For example, I want to return
container