selecting even rows

조회 수: 12 (최근 30일)
FIR
FIR 2012년 2월 18일
편집: Cedric 2013년 10월 15일
I have a matrix of 14x6,in this matrix i want to select only even rows and display,please help

채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 2월 18일
A - your matrix
A = randi(23,14,6)
out = A(2:2:end,:)
  댓글 수: 3
Andrei Bobrov
Andrei Bobrov 2012년 2월 18일
Hi! This is eg!!!! :)
FIR
FIR 2012년 2월 18일
Thanks andrei,can u please answer,i am struck here for some time
http://www.mathworks.in/matlabcentral/answers/29490-error-using-cell2mat

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by