I\'m trying to create matrix mask M where I can control the number of zeros in each row. As can be seen in the following code:
M