id, medium, source, sensor, input_args{:});

<span class="comment">% define the directionality of the sensor elements</span>
sensor.directivity_angle = zeros(kgrid.Nx, kgrid.Ny);
sensor.directivity_angle(1, :) = 0;      <span class="comment">% max sensitivity in x direction</span>
sensor.directivity_angle(end, :) = 0;    <span class="comment">% max sensitivity in x direction</span>
sensor.directivity_angle(:, 1) = pi/2;   <span class="comment">% max sensitivity in y direction</span>
sensor.directivity_angle