zz_angular_displacement = 'movexx_angular_displacement.csv';
importfile(zz_angular_displacement);
total_number = data(1,21);


for q = 1:total_number
    sensors_data(:,1,q)=data(:,8+((q-1)*18)); % S_Ax
    sensors_data(:,2,q)=data(:,9+((q-1)*18)); % S_Ay
    sensors_data(:,3,q)=data(:,10+((q-1)*18)); % S_Az
    sensors_data(:,4,q)=data(:,11+((q-1)*18)); % S_Gx
    sensors_data(:,5,q)=data(:,12+((q-1)*18)); % S_Gy
    sensors_data(:,6,q)=data(:,13+((q-1)*18)); % S_Gz
    sensors_data(:,7,q)=data(:,14+((q-1)*18)); % S_displacement_x
    sensors_data(:,8,q)=data(:,15+((q-1)*18)); % S_displacement_y
    sensors_data(:,9,q)=data(:,16+((q-1)*18)); % S_displacement_z
    sensors_data(:,10,q)=data(:,17+((q-1)*18)); % Mx
    sensors_data(:,11,q)=data(:,18+((q-1)*18)); % My
    sensors_data(:,12,q)=data(:,19+((q-1)*18)); % Mz
    sensors_data(:,13,q)=data(:,6+((q-1)*18)); % TimeStamp
end
    init_time_sensors = sensors_data(1,13,:);
for q = 1:total_number
    sensors_time(:,q) = (sensors_data(:,13,q) - init_time)*1e-9;
end