selecting even rows

15 次查看(过去 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