I have force and displacement data of 15 loop of cyclic loading in excel file. How can I calculate the Hysteresis area in every cycle (the area between loading and unloading in cyclic loading in force vs displacement graph)? I want to compare these areas. actually we can solve it using Trapezoidal Rule (area = { [ f(a)+f(b) ] /2 } * (b-a)) but does anyone know a MATLAB code or a Macro for this calculation?vthank you