>
0296 
0297 <span class="comment">% can't rememember what this is supposed to do...</span>
0298 <a name="_sub1" href="#_subfunctions" class="code">function y=norm2(x,nchans,ind)</a>
0299 [I,J]=ind2sub([nchans,nchans],ind); <span class="comment">% linear --&gt; matrix indices</span>
0300 <span class="keyword">for</span> k=1:size(x,1)
0301     a=x(k,1:nchans);
0302     b=sqrt(a(I).*a(J));
0303     y(k,:)=x(k,:)./b;
0304 <span class="keyword">end</span>
0305 
0306 <span class="comment">% matrix of covariance 