ght in kg</span>
<span class="comment">% y = brain weight in g</span>
</pre><h2>Original values<a name="2"></a></h2><pre class="codeinput">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 class="string">'linewidth'</span>, 2);
xlabel(<span class="string">'body weight'</span>)
ylabel(<span class="string">'brain weight'</spa