selection of rows in a matrix

1 次查看(过去 30 天)
how to select only few rows in a matrix
36 13
9 21
23 32
35 5
3 43
in ths five elements i have select only 3 rows which is
36 13
23 32
3 43
which is row 1, row 3, row 5

采纳的回答

Alex Mcaulley
Alex Mcaulley 2019-10-24
A = [36 13
9 21
23 32
35 5
3 43]
B = A([1,3,5],:)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 NaNs 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by