I need to delete rows that only have zeros or values near to it, let's say 0 +/- 1e-20. For example:
A=[ 7 8
1e-18 4
0 0
1e-19 0]
In this case, the result should be:
A=[7 8
1e-18 4]
I found the following code, but this only works if there are exact zeros.
A = A(any(A,2),:)