 the deadzone function</p>
<div class="math">
\[\begin{split}f(x) = \max \{ |x|-1, 0 \} = \begin{cases} 0 &amp; |x| \leq 1\\ x-1 &amp; x &gt; 1 \end{cases}\end{split}\]</div>
<p>To implement this function in CVX, simply create a file
<tt class="docutils literal"><span class="pre">deadzone.m</span></tt> containing</p>
<div class="highlight-none"><div class="highlight"><pre>function y = deadzone( x )
y = max( abs( x ) - 1, 0 )
</pre></div>
</div>
<p>This function works just as you expect it would outside of
C