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
 if statmements and column data

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
LabTalk user Posted - 09/17/2010 : 7:43:50 PM
Origin Ver. and Service Release (Select Help-->About Origin): 8.1 SR3
Operating System: XP

if(col(2) >= col(3) || col(2) <= col(4))
{
type -b Your data is outside of the allowed ranges;
}

I am trying to compare every data point in these columns. How do I do that?

Thanks!
1   L A T E S T    R E P L I E S    (Newest First)
DataConv Posted - 09/21/2010 : 01:16:14 AM
I assume your table is as followed:
col(2) holds your data
col(3) determines your maximum
col(4) determines your minimum
For working correctly, columns 2,3 and 4 must have the same size. However, if you have just 2 single values for min and max just use 'col(3)[1]' and 'col(4)[1]'. Or even better, create a variable like 'rmin=col(4)[1];' to work with...

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