The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 How: Integration of a Dataset; saving of result??

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
PHPDQCD Posted - 07/05/2002 : 08:01:12 AM
Hi,

i have a dataset of two columns, Data_1 is time, Data_2 ist (dq/dt), which is P.
For time t1 the q value is
the integral(start at t0, end at t1) over (dq/dt).

Now I want to plot q vs P. So to get my q values corresponding to the P values, i have to perform an integration for every P value.

How can i do this and put the results into another column?

My idea is to calculate the values of the integrals in a way that this value is defined as the integral over all datapoints of the P values in column data_2 up to this timepoint and store this value in column data_3.

After that I want top plot data_2 vs. data_3.

But I don't know how to do this, especially the integration over the datapoints.

Thank you for your help, regards

2   L A T E S T    R E P L I E S    (Newest First)
PHPDQCD Posted - 07/08/2002 : 07:25:02 AM
Thank you, thats exactly what i have searched for.
Michael
Jose Posted - 07/05/2002 : 09:40:43 AM
I do that kind of things using LabTalk like follows. I suppose you have two columns of data, named t and P, and that t is X type and P is Y type. Add another one at the end and name it Data1_Q. Then execute the following in the Script Window:


for (ii=1;ii<=wks.maxrows;ii+=1){
integrate %h_P -b 1 -e ii;
%h_Q[ii]=integ.area;
}


This assumes that your t0 value is in the first row.

Jose Viņa, Origin WebRing member

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000