pre class="codeinput">params = ncg(<span class="string">'defaults'</span>);
params.MaxIters = 1;
ncg(@(x) example1(x,3), pi/4, params);
</pre><pre class="codeoutput"> Iter  FuncEvals       F(X)          ||G(X)||/N        
------ --------- ---------------- ----------------
     0         1       0.70710678       2.12132034
     1        14      -0.99998885       0.01416497
</pre><p><b>Case 4: Using parameters from one run in another run.</b></p><p>One of the outputs returned by the Poblano optimization metho