ide of the diagonal.</span>
  A(1,2) == .5;
  A(1,4) == .25;
  A(2,3) == .75;

  <span class="comment">% find the solution to the problem</span>
  maximize( log_det( A ) )
  <span class="comment">% maximize( det_rootn( A ) )</span>
cvx_end

<span class="comment">% display solution</span>
disp([<span class="string">'Matrix A with maximum determinant ('</span> num2str(det(A)) <span class="string">') is:'</span>])
A
disp([<span class="string">'Its eigenvalues are:'</span>])
eigs = eig(A)
</pre>
<a id="output">