Hello guys!
I am struggling with this problem:
I have a big matrix that is made of few zeros raws and many nonzero raws.
This is a fake simple example to explain, because in reality I am working with big data :(:
B= [0 0 0 0; 0 0 0 0; 0 0 0 0; 0 0 0 0 ; 1 1 2 3; 0 0 0 3; 1 1 1 0; 4 4 4 4; 0 0 0 0 ; 0 0 0 0; 0 0 0 0 ; 0 0 0 8; 0 0 1 0; 0 1 1 0; 0 0 0 0; 0 0 0 0 ];
The zero rows in this matrix, indicate that the signal stopped and I just need to analyse the non zero raws in chunks.
Therefore would like to obtain:
chunk_1=[1 1 2 3;0 0 0 3;1 1 1 0;4 4 4 4]chunk_2=[0 0 0 8;0 0 1 0;0 1 1 0;]
As you can see the chunks don't have to have the same amount of raws, since I analyse them individually, and the zero chunks also don't have the same number of rows.
I hope you guys have more knowledge than ve and could help me!
Thanks in advance !
Best Answer