put">Optimization terminated.
</pre><h2>Student loss<a name="4"></a></h2><pre class="codeinput">modelStudent = linregRobustStudentFit(Xtrain, y);
yhatStudent = linregPredict(modelStudent, Xtest);
</pre><h2>Huber loss<a name="5"></a></h2><pre class="codeinput">deltas = [1];
<span class="keyword">for</span> i=1:length(deltas)
    delta = deltas(i);
    modelHuber = linregRobustHuberFit(Xtrain, y, delta);
    yhatHuber{i} = linregPredict(modelHuber, Xtest); <span class="comment">%#ok</span>
<span class="keywor