Retrieving non-zero minimum value of matrix column
Posted: Wed Feb 10, 2016 8:07 am
Hey there,
I'm having trouble retrieving the minimum of a matrix column, because it has to be non-zero. The @cmin command doesn't seem to work for this purpose, as to be expected, it retrieves the true min.
Is there anything that can I can bring to bear in this situation? I'd rather not resort to transforming the matrix to wipe the zeroes out, it would make everything else in my program really complicated.
[Edit] Even after transforming the zeroes to "NA", @cmin reads the minimum of the column as "NA". What to dooo....
I'm having trouble retrieving the minimum of a matrix column, because it has to be non-zero. The @cmin command doesn't seem to work for this purpose, as to be expected, it retrieves the true min.
Is there anything that can I can bring to bear in this situation? I'd rather not resort to transforming the matrix to wipe the zeroes out, it would make everything else in my program really complicated.
[Edit] Even after transforming the zeroes to "NA", @cmin reads the minimum of the column as "NA". What to dooo....