lot(x_, u_slice_1, <span class="string">'r-'</span>, x_, u_slice_2, <span class="string">'b-'</span>);
legend(<span class="string">'dt = 0.001'</span>, <span class="string">'dt = 0.1'</span>);
xlabel(<span class="string">'x'</span>); ylabel(<span class="string">'u'</span>);
fprintf(<span class="string">'max error = %e\n'</span>, max(abs(u_slice_1  - u_slice_2)));
</pre><pre class="codeoutput">max error = 0.000000e+00
</pre><img vspace="5" hspace="5" src="hw_2_6_3_02.png" alt=""> <img vspace="5" hspace="5" s