Borrar filtros
Borrar filtros

selecting even rows

6 visualizaciones (últimos 30 días)
FIR
FIR el 18 de Feb. de 2012
Editada: Cedric el 15 de Oct. de 2013
I have a matrix of 14x6,in this matrix i want to select only even rows and display,please help

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by