Robuta

https://nl.mathworks.com/help/matlab/ref/double.discretize.html discretize - Group data into bins or categories - MATLAB This MATLAB function returns the indices of the bins that contain the elements of X. group datadiscretizebinscategoriesmatlab