This function computes the minimum value of each row and minimum value for the whole matrix without min function of MATLAB
X = input matrix
row_min = minimum value found from each row. It is a row vector
matrix_min = minimum value of the whole matrix.
Rafi Ahmed (2020). Minimum Value of A Matrix (without using min function) (https://www.mathworks.com/matlabcentral/fileexchange/72909-minimum-value-of-a-matrix-without-using-min-function), MATLAB Central File Exchange. Retrieved .