use unique and sort to find the repetitions times of every element in the matrix
many thanks to Erik as this code is inspired by his work released in
Sun wei (2019). unique_reptition_cellchar_mathworks (https://www.mathworks.com/matlabcentral/fileexchange/69458-unique_reptition_cellchar_mathworks), MATLAB Central File Exchange. Retrieved .
This seems to be a function with the input "inp", but this is overwritten by loading the included MAT file. Because I cannot read the unicode characters of the comments, I do not understand, what this function should do.