)
beamPlot(mat, plot_yz)
beamPlot(xy_slice, xz_slice)
</pre>

<h2>Description</h2>
<p><code>beamPlot</code> plots 3D volumetric data as intersecting planes using
<code><a href="matlab: doc slice">slice</a></code>. The data is assumed to be indexed as (x, y, z). The central x-y and x-z planes are extracted and plotted as intersecting planes. The first y-z plane can also be plotted by setting the optional input <code>plot_yz</code> to true. This orientation is useful for plotting the beam patterns produced by