RES iterations</span>
iterations = 3;

<span class="comment">% As we want to control GMRES with number of iterations rather than</span>
<span class="comment">% the tolerance, we use a strict tolerance that we most probably would not</span>
<span class="comment">% reach in a few iterations</span>
tolerance = 1e-16;
</pre><h2>Run the two cases<a name="4"></a></h2><pre class="codeinput"><span class="keyword">for</span> casenr = 1:2
</pre><pre class="codeinput">    <span class="keyword">switch</span> casenr
   