MATLAB: How to find non zero minimum

minimum

hi, i have a [8200,1] matrix with zero and positive values. i need to find non zero minimum. please guide me if you can

Best Answer

this is simple :) name the matrix A (for example) then : m=min(A(A>0)); m returns the non zero minumum