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
 Use of limit command

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
peter311 Posted - 11/26/2008 : 10:10:30 AM
Hi there,

I'm working with the limit command, but I think I got something wrong with the syntax.
I've got column b and I want to calculate the min and max (and their positions) for a specific intervall.
The syntax from the manual: limit [option] dataset [range]
So I assumend, that limit col(b)[100:200] should be right - but it isn't. Limit col(b) works fine, but I can't manage to set a specific range (tested with limit.size=).

If I use limit col(b) -b 1 -e 3 it shoul use the first three values, but this is ignored.
If I use start = 1; stop = 5; ticks = 5; step = 0; limit -r start stop ticks step col(b) it is ignored as well.

So in the end, I'm quite confused. Can you tell me, what I got wrong? Thanks!
3   L A T E S T    R E P L I E S    (Newest First)
peter311 Posted - 11/27/2008 : 03:06:27 AM
Thanks Deanna!

Yeah, it works fine now!

If limit is an old LabTalk command, is there another more suitable command for this task? I've got a dataset (x,y) and like to find global mininma with their positions (x,y) in a specific range. The other command stats just delivers the value, not the position. Thanks again.

Peter
Deanna Posted - 11/26/2008 : 1:52:06 PM
Hi Peter,

Limit is an old LabTalk command that was created before Origin 8 was released. It does not work very well with new range notations such as "col(b)[100:200]". It is better to define a range and then use the command with the range. An example:


range aa = col(b)[100:200];
limit aa;


Deanna
OriginLab Technical Services
peter311 Posted - 11/26/2008 : 10:12:41 AM
I can't edit my topic as well, but some other maybe useful information: Origin 8 SR4 at Windows2000.

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