 be a planar sensor array (over a plane x = const). A visualisation of the initial pressure distribution and the sensor mask using <code><a href="voxelPlot.html">voxelPlot</a></code> is given below.</p>

<pre class="codeinput">
<span class="comment">% smooth the initial pressure distribution and restore the magnitude</span>
source.p0 = smooth(p0, true);

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

<img vspa