selecting even rows

8 Ansichten (letzte 30 Tage)
FIR
FIR am 18 Feb. 2012
Bearbeitet: Cedric am 15 Okt. 2013
I have a matrix of 14x6,in this matrix i want to select only even rows and display,please help

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 18 Feb. 2012
A - your matrix
A = randi(23,14,6)
out = A(2:2:end,:)
  3 Kommentare
Andrei Bobrov
Andrei Bobrov am 18 Feb. 2012
Hi! This is eg!!!! :)
FIR
FIR am 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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by