The NDX2SUB function converts the indices of a matrix into subscripts. This function is part of the IMLMLIB library of modules.