 [Dof,nDir] = n2dofdir(nDof)">n2dofdir</a>(UniqueResps);
0124 [RefDof,RefDir]=<a href="n2dofdir.html" class="code" title="function    [Dof,nDir] = n2dofdir(nDof)">n2dofdir</a>(UniqueRefs);
0125 
0126 <span class="comment">% Detect if impact test with roving Ref: if so, the matrix is permuted</span>
0127 <span class="comment">% to 'shaker format' using reciprocity, and Resp and Ref variables swapped</span>
0128 <span class="keyword">if</span> NoResps &lt; NoRefs
0129     H=permute(H,[1 3 2]);
0130     a=RefD