MATLAB code includes total force graph