I still don't quite editing the program I bought.
There is a S t matrix, which is programmed to find the rows and columns of the largest elements, and output their values and row numbers.