필터 지우기
필터 지우기

takespecific elements from matrix to build new one

조회 수: 2 (최근 30일)
Abdulkareem
Abdulkareem 2014년 3월 12일
편집: Chris C 2014년 3월 12일
hey everybody i have 40*10 matrix i want to build new one that contain the first 10 rows (1:10,:) and the third 10 rows (31:40,:) so the new matrix will contain 20*10 . thanks in advance.

채택된 답변

Chris C
Chris C 2014년 3월 12일
편집: Chris C 2014년 3월 12일
If your original matrix is called A, then
B = [A(1:10,:); A(31:end,:)];

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by