></li></ul></div><h2>Numerical Solution<a name="3"></a></h2><pre class="codeinput">ts = [0.0, 0.12, 0.2, 0.8];
<span class="comment">% #1: $M = 20, \Delta t = 0.04$</span>
dx = 0.05; dt = 0.04;
[u, v, X, T] = solver_5_6_2(dx, dt, 1);
plotSlice_5_6_1(ts, dt, u, v, X, T);
<span class="comment">% #2: $M = 100, \Delta t = 0.008$</span>
dx = 0.01; dt = 0.008;
[u, v, X, T] = solver_5_6_2(dx, dt, 1);
plotSlice_5_6_1(ts, dt, u, v, X, T);
<span class="comment">% #3: $t_slice = [0, 5, 10, 20]$</span>
ts = [0, 5, 10, 