class="string">'u(numerical)'</span>);
</pre><img vspace="5" hspace="5" src="hw_2_6_3_01.png" alt=""> <h2>Value of Slices<a name="8"></a></h2><pre class="language-matlab"><span class="keyword">function</span> plotSlice_2_6_3( t_slice, dt, u, x_ )
    <span class="keyword">global</span> u u_exact x_
    t_slice_id = round(t_slice / dt) + 1;
    u_slice_num = u(t_slice_id, :);
    u_slice_num = u_slice_num(:);
    figure; hold <span class="string">on</span>;
    plot(x_, u_slice_num, <span class="string">'r-'