필터 지우기
필터 지우기

take selected rows from given matrix

조회 수: 3 (최근 30일)
JaeSung Choi
JaeSung Choi 2017년 11월 22일
댓글: JaeSung Choi 2017년 11월 22일
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!