Solved
How to extract non zero submatrix to a matrix table


Neptali Barte wrote:
Yes, it works! Thanks Raiko. My another problem is that when I add more values in the columns of the 1st row only (See snapshot). It only gets the first row only. I want to include in the results the values of the second to the last row where there is a value even when there are zeroes below the 1st row.
Change your last line to
submatrix(test,min(I),max(I),min(J),max(J))
Stuart
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.