take selected rows from given matrix

1 次查看(过去 30 天)
How can i take selected rows from given matrix??
For instance, let A = rand(100) and i want to take 10th,20th,30th ----100th row from A
Without using 'for' ( since i have to do many times, speed is important ), deriving is possible?? Help me!

采纳的回答

Andrei Bobrov
Andrei Bobrov 2017-11-22
out = A(10:10:end,:);

更多回答(1 个)

Birdman
Birdman 2017-11-22

类别

Help CenterFile Exchange 中查找有关 행렬과 배열 的更多信息

Community Treasure Hunt

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

Start Hunting!