omitting array
Mostrar comentarios más antiguos
hi, i'm a beginner and now i'm writing a program, but there is a problem. i have a 13*1 matrix, but i want just the odd rows, it means 1, 3, 5, 7, 9, 11, and 13. how can i omit the even rows? i want a rule so that i can use it for other long matrixes! please help :D
Respuesta aceptada
Más respuestas (1)
Oleg Komarov
el 16 de Feb. de 2012
For matrix A:
A(1:3:end,:)
1 comentario
Anahita Gh
el 16 de Feb. de 2012
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!