------------------------------------------------------------------------------- Takes a 6 state input and returns the first 3 states (position). ------------------------------------------------------------------------------- Form: out = x2r( varargin ) ------------------------------------------------------------------------------- ------ Inputs ------ varargin (:) Variable number of inputs, raw simulation data. ------- Outputs ------- out (1,:) Derived output data. -------------------------------------------------------------------------------