distances</span>
0307 <a name="_sub2" href="#_subfunctions" class="code">function B=covdists(C) </a><span class="comment">% B: matrix of distances, C: array of covariance matrices</span>
0308 B=nan(numel(C));
0309 CC=zeros(size(C{1}));
0310 <span class="keyword">for</span> k=1:numel(C); CC=CC+C{k}; <span class="keyword">end</span>
0311 <span class="keyword">for</span> k=1:numel(C)
0312     <span class="keyword">for</span> j=1:k-1
0313         [E]=eig(abs(C{j}-C{k}),CC);
0314         B(j,k)=max(abs(log2(E)))