The matlab code for generating blobs can be download here .