Matlab test at network grouping and learning