MATLAB: Working with even rows

MATLABmatrix

Hello, I have a matrix 4×4, and I want to find the maximum of all elements which are in even rows.

Best Answer

X = magic(4);
max(X(2:2:end,:))