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일

3 개 추천

A - your matrix
A = randi(23,14,6)
out = A(2:2:end,:)

댓글 수: 3

FIR
FIR 2012년 2월 18일
andrei i dont want to use randii
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개)

카테고리

태그

질문:

FIR
2012년 2월 18일

편집:

2013년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by