MATLAB - extracting rows of a matrix

后端 未结 5 821
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 14:26

a = [1 2; 3 4; 5 6] I want to extract the first and third row of a, so I have x = [1; 3] (indices of rows).

a(x)

5条回答
提交回复
热议问题