MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by FIR
on 18 Feb 2012

I have a matrix of 14x6,in this matrix i want to select only even rows and display,please help

*No products are associated with this question.*

Answer by Andrei Bobrov
on 18 Feb 2012

Accepted answer

`A` - your matrix

A = randi(23,14,6) out = A(2:2:end,:)

## 0 Comments