function [MOTION_VAR] = MOT_ANA_Reftopop(Motion_Matrix,Type) switch Type case 'Popref' for i = 1:size(Motion_Matrix,2) MOTION_VAR(:,i) = (Motion_Matrix(:,i)-mean(Motion_Matrix(:,i)))./std(Motion_Matrix(:,i)); end otherwise MOTION_VAR = Motion_Matrix; end end