
Plots
&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../../index.html">Library index</a>
</div>
<div id="content">
<a id="source"></a>
<pre class="codeinput">
<span class="comment">% Sec. 8.1.1, Boyd &amp; Vandenberghe "Convex Optimization"</span>
<span class="comment">% Joelle Skaf - 10/04/05</span>
<span class="comment">%</span>
<span class="comment">% The projection of x0 on a halfspace C = {x | a'*x &lt;= b} is given by</span>
<span class="comment">%           minimize || x - x0 ||^2</span>
<span class="comment">