%do_movesensor
%typical use: replace the final tapad solution with solution from an
%alternative procedure (e.g kalman). Usually only for a single sensor.
%Normally use AFTER do_velocityrepair and do_eucdist2pos.
%Assuming kalman data is replacing tapad, then this means that the kalman
%compdist will be retained in the final solution rather than the distance
%between tapad and kalman solution.
%Paths are set up below to illustrate the typical cases.

clear variables

inpath1=['ampsfiltadj1' pathchar 'velrep' pathchar 'rawpos' pathchar];
inpath2=['ampsfiltadj1k' pathchar 'kalmanus' pathchar 'rawposm' pathchar];
chanlist=??;
triallist=??;
%movesensor(inpath1,inpath2,triallist,chanlist)
movesensor(inpath1,inpath2,triallist,chanlist)
