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 for Programming
 LabTalk Forum
 Integration for multiple Graphs

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
Voeluspa Posted - 02/01/2016 : 10:08:47 AM

Hello,
I'm trying to write a script to analyse my data faster. (One Data set contains 25 Graphs), but I'm a raw recruit :/
I made it to smooth the data and I need to integrate each graph in a certain area (baseline: endpoints line).

I use

plotxy iy:=(1,2:end) plot:=200

to plot the data (which works fine) and

int ix1:=xindex(0.005%c);
int ix2:=xindex(0.018%c);

range rr=(%c)[$(ix1):$(ix2)];
integ1 rr baseline:=1;
integ1.=;

to integrate it.
Problem: The Integration is only carried out for one of the Graphs, but not for all 25.
How can I change it so that in the "result-Window" the result for each graph is shown?

Thanks in advance for any help!
2   L A T E S T    R E P L I E S    (Newest First)
Voeluspa Posted - 02/03/2016 : 11:00:26 AM
It's working :)
Thank you so much!!
jasonzhao Posted - 02/03/2016 : 03:35:18 AM
Hello,

You may need to use this script for looping:

doc -e d
{
/// Code for the loop's body here
///%C the dataset name in each iteration.
}

Please refer to this page for further information:
http://www.originlab.com/doc/LabTalk/ref/Document-cmd#-e_object_.7Bscript.7D.3B_Execute_the_given_script_for_all_objects

Best regards!
Jason
OriginLab Technical Service

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