Dear all,
Let say I have a matrix M of size 6 x 3 x 3. And on each channel there are some zero rows (note that zero rows are evenly present in all channels). How can I remove the rows with all zeros.
For example,
M(:,:,1) = 422 397 553 0 0 0 0 0 0 476 494 520 0 0 0 0 0 0M(:,:,2) = 0 0 0 384 494 504 0 0 0 0 0 0 385 446 474 0 0 0M(:,:,3) = 0 0 0 0 0 0 1194 1176 1295 0 0 0 0 0 0 1202 1141 1295
Best Answer