ing">'test'</span>)
printPmtkFigure(<span class="string">'linregPolyVsDegreeUcurve'</span>)
</pre><img vspace="5" hspace="5" src="linregPolyVsDegree_01.png" alt=""> <h2>Plot fitted function for chosen values of degree<a name="4"></a></h2><pre class="codeinput"><span class="keyword">for</span> deg = [1, 2, 10, 14, 20]
    pp = preprocessorCreate(<span class="string">'rescaleX'</span>, true, <span class="string">'poly'</span>, deg, <span class="string">'addOnes'</span>, true);
    model = linregFit(xtrain, yt