When integrating acceleration do you need to convert velocity?
I am using data from class that is wave data from a boat.
I am taking the accleration data and demeaning it, filtering it, then using cumtrapz twice to get to displacement. Here is my code for one of the axies:
low_x = low_x – mean(low_x);
[B,A] = butter(8,(5/250));
low_xF = filter(B,A,low_x);
vel_x = (386.09) * cumtrapz(.002,low_xF);
vel_x = vel_x – mean(vel_x);
dis_x = cumtrapz(.002,vel_x);
dis_x = dis_x – mean(dis_x);
My output for displacement is saying my boat is going in the air by 1000 inches with only .04gs. I was wondering if I am doing some type of conversion incorrectly. Any help would be appericated.I am using data from class that is wave data from a boat.
I am taking the accleration data and demeaning it, filtering it, then using cumtrapz twice to get to displacement. Here is my code for one of the axies:
low_x = low_x – mean(low_x);
[B,A] = butter(8,(5/250));
low_xF = filter(B,A,low_x);
vel_x = (386.09) * cumtrapz(.002,low_xF);
vel_x = vel_x – mean(vel_x);
dis_x = cumtrapz(.002,vel_x);
dis_x = dis_x – mean(dis_x);
My output for displacement is saying my boat is going in the air by 1000 inches with only .04gs. I was wondering if I am doing some type of conversion incorrectly. Any help would be appericated. I am using data from class that is wave data from a boat.
I am taking the accleration data and demeaning it, filtering it, then using cumtrapz twice to get to displacement. Here is my code for one of the axies:
low_x = low_x – mean(low_x);
[B,A] = butter(8,(5/250));
low_xF = filter(B,A,low_x);
vel_x = (386.09) * cumtrapz(.002,low_xF);
vel_x = vel_x – mean(vel_x);
dis_x = cumtrapz(.002,vel_x);
dis_x = dis_x – mean(dis_x);
My output for displacement is saying my boat is going in the air by 1000 inches with only .04gs. I was wondering if I am doing some type of conversion incorrectly. Any help would be appericated. convert, cumtrapz MATLAB Answers — New Questions