Hi i have a dilemma here. I have here with me a following matrix:
[,1] [,2] [,3] [,4] [,5]
[1,] 0.000000 1.414214 2.828427 4.242641 5.656854
[2,] 1.414214 0.000000 1.414214 2.828427 4.242641
[3,] 2.828427 1.414214 0.000000 1.414214 2.828427
[4,] 4.242641 2.828427 1.414214 0.000000 1.414214
[5,] 5.656854 4.242641 2.828427 1.414214 0.000000
My question here is how do I single out the least non-zero value in the matrix above. Clearly, if I used min(A) I would get 0 as my answer but what I want is the value 1.414214.