selecting even rows

17 views (last 30 days)
FIR
FIR on 18 Feb 2012
Edited: Cedric on 15 Oct 2013
I have a matrix of 14x6,in this matrix i want to select only even rows and display,please help

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!