Here is my problem: Initially, I have an M matrix (252x4). I need to create a W matrix (252x4x252). The restrictions are: