Plotting 1st derivative and 2nd derivative graph from a set of values
I have a set of raw data collected from a displacement time graph and i wish to convert it into a velocity time graph and acceleration time graph. Is there anyway to do that? My data is the time at each interval of displacement so I do not have enough points to plot using the (y1-y2)/(x1-x2) method to extrapolate the gradient. Is there anyway to get the derivatives from the line of best fit? I cannot just differentiate line of best fit polynomial as it becomes a straight line graph after 1.5s so the best method is to find gradient of this graph at many points and plot from there.
Data points:I have a set of raw data collected from a displacement time graph and i wish to convert it into a velocity time graph and acceleration time graph. Is there anyway to do that? My data is the time at each interval of displacement so I do not have enough points to plot using the (y1-y2)/(x1-x2) method to extrapolate the gradient. Is there anyway to get the derivatives from the line of best fit? I cannot just differentiate line of best fit polynomial as it becomes a straight line graph after 1.5s so the best method is to find gradient of this graph at many points and plot from there.
Data points: I have a set of raw data collected from a displacement time graph and i wish to convert it into a velocity time graph and acceleration time graph. Is there anyway to do that? My data is the time at each interval of displacement so I do not have enough points to plot using the (y1-y2)/(x1-x2) method to extrapolate the gradient. Is there anyway to get the derivatives from the line of best fit? I cannot just differentiate line of best fit polynomial as it becomes a straight line graph after 1.5s so the best method is to find gradient of this graph at many points and plot from there.
Data points: derivative MATLAB Answers — New Questions