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
 Elapsed time ...

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
stormo Posted - 05/08/2008 : 2:55:46 PM
Origin Version (Select Help-->About Origin): OriginPro 7.5 SR6 v7.5885
Operating System: Windows XP

Searched for 'elapsed time' posts and found two, but they were over my head (LOT of smart people on this forum) and I'm running out of time (patience, and others).

Column A is in seconds. Run this script on this data ...



And get this ...



Little help?.

/s/ GS
2   L A T E S T    R E P L I E S    (Newest First)
stormo Posted - 05/16/2008 : 12:47:24 PM
Thank you, Greg!!

Appreciate the help very much!

/s/ GS
greg Posted - 05/09/2008 : 09:24:41 AM
aa=col(1)[1];
reads the first value in column 1 which is "Time" and since that has no numeric value, aa get assigned as a missing value. Math using missing values results in missing values.

To zero-base your time data, change
aa=col(1)[1];
to
aa=col(1)[2];

and your loop only needs to start at 2:
loop(nn,2,wks.maxrows)

Edited by - greg on 05/09/2008 09:37:18 AM

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