S, yhatLaplace, yhatStudent,<span class="keyword">...</span>
    yhatHuber{1}}, <span class="keyword">...</span>
    legendStr)
printPmtkFigure(<span class="string">'linregRobustAll'</span>)
</pre><img vspace="5" hspace="5" src="linregRobustDemoCombined_01.png" alt=""> <pre class="codeinput"><span class="keyword">end</span>
</pre><pre class="codeinput"><span class="keyword">function</span> doPlot(x, y, yhat, legendStr)
<span class="keyword">if</span> ~iscell(yhat), yhat = {yhat}; <span class="keyword">end</