mment">% This file is from pmtk3.googlecode.com</span>



N = 21;
[xtrain, ytrain, xtest, ytestNoisefree, ytest] = <span class="keyword">...</span>
    polyDataMake(<span class="string">'sampling'</span>,<span class="string">'thibaux'</span>, <span class="string">'n'</span>, N);


<span class="comment">%degs = 0:2:20;</span>
degs = 1:20;
Nm = length(degs);
</pre><h2>Plot error vs degree<a name="3"></a></h2><pre class="codeinput">mseTrain = zeros(1,Nm); mseTest = zeros(1,Nm);
<span class="keyword">for</span>