Deleting rows and columns

조회 수: 1 (최근 30일)
Deepayan Bhadra
Deepayan Bhadra 2014년 4월 27일
편집: Roberto 2014년 4월 27일
I have a 359x479 matrix. I want to down-sample it by removing every 2nd, 4th, so on... row and column. Which is the best method?

채택된 답변

Roberto
Roberto 2014년 4월 27일
편집: Roberto 2014년 4월 27일
try accessing x vector/matrix by index e.g.
x = x( 1:2:end , 1:2:end );

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by