How can i calculate area under the cyclic curve and max ordinate of every curve?

2 views (last 30 days)
I have an excel scatter curve. in which the horizontal axis shows displacement and vertical one shows base shear.
how can I calculate maximum displacement in every cycle and area under the curve of every cycle

Answers (2)

RAHUL CHOUHAN
RAHUL CHOUHAN on 29 Jul 2019
This Whole Cyclelic curve is composed of a different number of cyclic curves.
the first curve will start from the first value and end at last positive value. the second curve will start at the endpoint of the first curve. this process will continue until the last value of the whole curve.
Please find attached file.
sorry for the delay in response.

darova
darova on 29 Jul 2019
Use this to find all start points of curves
ind = find(diff(x > 0));
ind = [1; ind];
Use trapz to calculate area under the curve
  7 Comments
RAHUL CHOUHAN
RAHUL CHOUHAN on 5 Aug 2019
Sir, how can i sort number of curve usign matlab function. and how can calculate approxiame area b/w this curves.
darova
darova on 5 Aug 2019
For simple curve like this you can use polyarea()
img4.png
For curve that intersects itself i'd divide it into 2 parts (using max and min)
img2.png
I used polyxpoly() to find intersections
img22.png
polyxpoly() also returns indices of curves (where they intersect) so you can calculate area each of them apart using polyarea()
img33.png img34.png
This kind of curve remains. Honestly i don't know where is an area here
img3.png

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!