Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Ernesto  
#1 Posted : 22 March 2017 11:22:47(UTC)
Ernesto


Rank: Advanced Member

Groups: Registered
Joined: 03/02/2014(UTC)
Posts: 67
Nicaragua

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).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 22 March 2017 13:55:36(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
geometric solution Good

integration array.sm (12kb) downloaded 122 time(s).
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 24/03/2017(UTC)
Offline Ernesto  
#3 Posted : 22 March 2017 19:14:35(UTC)
Ernesto


Rank: Advanced Member

Groups: Registered
Joined: 03/02/2014(UTC)
Posts: 67
Nicaragua

Was thanked: 13 time(s) in 11 post(s)
That's perfect!! Clap

Thanks for your help!
Offline uni  
#4 Posted : 22 March 2017 19:18:39(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,494
Man
Russian Federation

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
Offline Ernesto  
#5 Posted : 22 March 2017 19:22:56(UTC)
Ernesto


Rank: Advanced Member

Groups: Registered
Joined: 03/02/2014(UTC)
Posts: 67
Nicaragua

Was thanked: 13 time(s) in 11 post(s)
Thanks but this is more than sufficient for my needs.

Regards.
Offline Jean Giraud  
#6 Posted : 22 March 2017 21:12:56(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 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).
Offline Ernesto  
#7 Posted : 22 March 2017 21:29:50(UTC)
Ernesto


Rank: Advanced Member

Groups: Registered
Joined: 03/02/2014(UTC)
Posts: 67
Nicaragua

Was thanked: 13 time(s) in 11 post(s)
@Jean

It is horizontal soil pressure vs depth
Offline Jean Giraud  
#8 Posted : 23 March 2017 16:29:54(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: Ernesto Go to Quoted Post
@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).

Users browsing this topic
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.