1 function [OUTS,OUToldS,OUTD]=interch(
S,
oldS,
D,Ncond,fstep); %03.04.2001, Bjorn G.
2 %CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
3 %C Interchanging e-vectors and corresponding e-values so that they become smooth
4 %C functions of frequency. Considers the old eigenvectors one-by-one and finds out by which of
5 %C the new ones the largest
dot product is attained.
7 % Translation: stoerst=largest, hjelp=help, opptatt=taken
28 %C Sorting inner products
abs(realdel) in descending order :
42 %C Doing the interchange in
a prioritized
sequence :
72 %C Finding out whether the direction of e-vectors are 180deg. in error. Is done by comparing
73 %C sign of dotproducts of e-vectors, for new and old
S-
matrix :
79 if sign(real(dotprod))<0
Find a complex rational model for freq domain data for a
end if sign(real(dotprod))< 0 S(end end end oldS
end if abs(real(dotprod))>rstoerst rstoerst
end end end C Doing the interchange in a prioritized sequence