MATLAB: Create a mask of a rectangular region

image processing

How to create a mask of a rectangular region?
Related Question