>% Initialise the hyperparameters</span>
GP.covpar   = 1*ones(1,GP.CovFn.npar(size(X,1)));
GP.meanpar  = zeros(1,GP.MeanFn.npar(size(X,1)));
GP.noisepar = 1e-3*ones(1,GP.NoiseFn.npar);
</pre><h2>Learn &amp; Query<a name="5"></a></h2><pre class="codeinput">GP.learn();
GP.solve();
[mf, vf] = GP.query(xstar);
sf  = sqrt(vf);
</pre><pre class="codeoutput">Running simulated annealing. Does not use gradients.

  Initial temperature:     	1
  Final temperature:       	3.21388e-07
  Consecutive rejections:  	1278
 