size( x );
    cvx_begin
        variables w( sx ) v( sx );
        minimize( w .^ 2 + 2 * v );
        subject to
            abs( x ) &lt;= w + v;
            w &lt;= 1; v &gt;= 0;
    cvx_end
end
</pre></div>
</div>
<p>Alternatively, you can create two separate versions of the function, one
for numeric input and one for CVX expressions, and place the CVX
version in a subdirectory called <tt class="docutils literal"><span class="pre">&#64;cvx</span></tt>. (Do not include this
directory in your Matlab <tt 