n>)
axis <span class="string">tight</span>
printPmtkFigure(<span class="string">'linregLogTransformRaw'</span>)
</pre><img vspace="5" hspace="5" src="linregLogTransformDemo_01.png" alt=""> <h2>Log transform<a name="3"></a></h2><pre class="codeinput">x = log(x);
y = log(y);
m = linregFit(x, y);
yhat = linregPredict(m, x);
figure; hold <span class="string">on</span>
plot(x, y, <span class="string">'o'</span>, <span class="string">'markersize'</span>, 10);
plot(x, yhat, <span class="string">'-'</span>, <span c