ode>.</p>

<pre class="codeinput">
<span class="comment">% upsample the image using linear interpolation</span>
scale_factor = 2;
scan_lines_fund = interp2(1:kgrid.Nt, (1:number_scan_lines).', scan_lines_fund, 1:kgrid.Nt, (1:1/scale_factor:number_scan_lines).');
scan_lines_harm = interp2(1:kgrid.Nt, (1:number_scan_lines).', scan_lines_harm, 1:kgrid.Nt, (1:1/scale_factor:number_scan_lines).');
</pre>

<p>A plot of the central scan line after each processing step is given below.</p>

<img vspace="5" hspace="5