th a line of 1's along the first matrix row (i.e., a line along x = const).</p>

<pre class="codeinput">
<span class="comment">% define a binary line sensor</span>
sensor.mask = zeros(Nx, Ny);
sensor.mask(1, :) = 1;
</pre>

<p>The initial pressure distribution (along with the binary sensor mask) and the recorded sensor data returned after running the simulation are shown below.</p>

<img vspace="5" hspace="5" src="images/example_pr_2D_fft_line_sensor_01.png" style="width:560px;height:273px;" alt="">
<img vs