Indexing vector elements of a matrix

And by the way: Welcome!
Always provide MWE (minimal working example), thats makes it much easier to comprehend the question :slight_smile:
See Please read: make it easier to help you