/p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#3">Laplace loss</a></li><li><a href="#4">Student loss</a></li><li><a href="#5">Huber loss</a></li><li><a href="#6">Laplace and student on same plot</a></li></ul></div><pre class="codeinput"><span class="comment">% This file is from pmtk3.googlecode.com</span>

<span class="keyword">function</span> linregRobustDemoCombined()
</pre><pre class="codeinput">requireOptimToolbox
seed = 0; setSeed(seed);
x = sort(rand(10,1));
y = 1+2*x + rand(size(x))-.