/index.html">Library index</a>
</div>
<div id="content">
<a id="source"></a>
<pre class="codeinput">
<span class="comment">% This script finds a Toeplitz Hermitian PSD matrix that is closest to a</span>
<span class="comment">% given Hermitian matrix, as measured by the Frobenius norm. That is, for</span>
<span class="comment">% a given matrix P, it solves:</span>
<span class="comment">%    minimize   || Z - P ||_F</span>
<span class="comment">%    subject to Z &gt;= 0</span>
<span class="comment">%</span>
<