lass="string">'Done! \n'</span>);

<span class="comment">% Huber</span>
fprintf(1,<span class="string">'Computing the solution of the huber-penalized problem...'</span>);

cvx_begin <span class="string">quiet</span>
    variable <span class="string">xhub(n)</span>
    minimize(sum(huber(A*xhub-b)))
cvx_end

fprintf(1,<span class="string">'Done! \n'</span>);

<span class="comment">% Plots</span>
figure(1);  hold <span class="string">off</span>
plot(pts,b,<span class="string">'o'</span>, [-11; 11], [1 -11; 1 