Calc2dTimeAxes.m



topics - functions - index - search


Calc2dTimeAxes.m

AxesLeft,kRight,AxesRight,kNorm,AxesNorm,kAll,AxesAll,...
TopStatusVec,FrontStatusVec,BackStatusVec,LeftStatusVec,RightStatusVec,NormStatusVec,AllStatusVec] = ...
Calc2dTimeAxes(EPosSpher,ChanStatusVec)

Calc2dTimeAxes calculates positions of the channel axes for 2d-display in
emegs2d and editaem. It transforms spherical sensor coordinates in
normalized 2d-coordinates using the following projection formula:

AxesNorm(:,1)=norm_1((EPosSpher(kNorm,1).*cos(EPosSpher(kNorm,2)))',1)';
AxesNorm(:,2)=norm_1((EPosSpher(kNorm,1).*sin(EPosSpher(kNorm,2)))',1)';