Make attend matrix