My goal is to reverse the order of the three matrices, by an order of magnitude two matrices just (with one line of code perhaps) Any idea?
A = rand(256, 256, 3);
B = zeros(256, 256);
for i = 1: size(A, 1)
for j = 1 : size(A, 2)
B(i,j) = max(A(i,j, :));
end
end
source
to share