tion</span> [M, S, V] = gp2(gpmodel, m, s)
</pre><h2>Code<a name="2"></a></h2><pre class="codeinput"><span class="keyword">persistent</span> iK oldX oldIn oldOut beta oldn;
D = size(gpmodel.inputs,2);    <span class="comment">% number of examples and dimension of inputs</span>
[n, E] = size(gpmodel.targets);      <span class="comment">% number of examples and number of outputs</span>

input = gpmodel.inputs;  target = gpmodel.targets; X = gpmodel.hyp;

<span class="comment">% 1) if necessary: re-compute cac