powered by
This function identifies the location of the minimum value in a square matrix.
loc.min(my.mat,d)
A square matrix.
Dimensions of the matrix.
A vector containing the row and column number of the minimum value.
# NOT RUN { cmat<-matrix(c(1,0.2,0.3,0.2,1,0.2,0.3,0.2,1), nrow=3, ncol=3) loc.min(my.mat=cmat, d=3) # }
Run the code above in your browser using DataLab