Text this: The study of two-dimensional electromagnetically induced grating in a partially closed M-type atomic model.