Added funciton to ge dummy matrix