I am trying to applied the central difference technique formula into my code but I am having trouble with the output. I am trying to determine the angular acceleration of by using the knee angle. I need to plot my ang_acc vs time . I am also using this formula: (x_(i+2)-2x_i+x_(i-2))/(4∆t^2 )
fs = 69.9;
t = [1/fs:1/fs:length(ankle)/fs];
fc = [.1:.1:(fs/2)-.1]';
n = length(fs);
t=106;
%% Step 1: Calculate Knee Angle
% hip -knee represent the end points of the thigh segment angle
%fibula-ankle represent the end points of the leg segment angle
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
2 Comments
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/601522-i-am-trying-to-determine-the-angular-acceleration-by-applying-the-central-difference-technique#comment_1028569
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/601522-i-am-trying-to-determine-the-angular-acceleration-by-applying-the-central-difference-technique#comment_1028569
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/601522-i-am-trying-to-determine-the-angular-acceleration-by-applying-the-central-difference-technique#comment_1028650
Direct link to this comment
https://uk.mathworks.com/matlabcentral/answers/601522-i-am-trying-to-determine-the-angular-acceleration-by-applying-the-central-difference-technique#comment_1028650
Sign in to comment.