Hello All

I have a basic question. I am trying to create a binary mask for each of our individual subject brains. I want to specify particular coordinates and make them 0 and the rest 1s, assuming if I have a 2x3x5 matrix, I want to make say 1x1:2x1:4 all 1s and the rest zeros. I am not sure if this is even possible.

Let me know if I am not clear.