matlab scripts for generating random clusters of components