SMath Studio Forum
»
SMath Studio
»
Questions
»
Numerical Integration of Data Set
Rank: Advanced Member Groups: Registered
Joined: 03/02/2014(UTC) Posts: 67 Was thanked: 13 time(s) in 11 post(s)
|
Is there an easy way to integrate a data set using the trapezoid rule, like the "trapz" function in matlab? Also is there an easy way to find the centroid of this area? I've attached a sample data set. integration array.sm (4kb) downloaded 48 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,648 Location: Italy Was thanked: 1332 time(s) in 876 post(s)
|
|
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 03/02/2014(UTC) Posts: 67 Was thanked: 13 time(s) in 11 post(s)
|
That's perfect!! Thanks for your help!
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,494 Was thanked: 1274 time(s) in 745 post(s)
|
or I can add original "trapz" function to the matlab plugin if you really need this. |
Russia ☭ forever Viacheslav N. Mezentsev |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 03/02/2014(UTC) Posts: 67 Was thanked: 13 time(s) in 11 post(s)
|
Thanks but this is more than sufficient for my needs.
Regards.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Ernesto, Your data set is not impressive. As is: it represents no physical phenomenon. The way I see it is otherwise ... it looks the linear junctions can only represent derivatives of quadratic. It suggests a polynomial fit [offered]. Is it a piece of wood ? the fence around the yard ? Jean integration array [option].sm (23kb) downloaded 40 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 03/02/2014(UTC) Posts: 67 Was thanked: 13 time(s) in 11 post(s)
|
@Jean
It is horizontal soil pressure vs depth
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Ernesto @Jean
It is horizontal soil pressure vs depth Thanks Ernesto, interesting. You can complete and export your project, in red at the end of the WS. Jean Polynomial fit QUARTIC Option.sm (27kb) downloaded 42 time(s).
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
Numerical Integration of Data Set
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.