I want to manipulate only the components of a matrix which are int the first row and even columns, so (1, 2), (1, 4), etc. To extract the even columns I used: B(:,2:2:end); and for the elements in the first row: B(1,:);
Combining the two: B(1,:,2:2:end); I would get an empty array. Is there a way to this in a single expression?
Best Answer