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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Use of limit command
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

peter311

Germany
4 Posts

Posted - 11/26/2008 :  10:10:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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!

peter311

Germany
4 Posts

Posted - 11/26/2008 :  10:12:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I can't edit my topic as well, but some other maybe useful information: Origin 8 SR4 at Windows2000.
Go to Top of Page

Deanna

China
Posts

Posted - 11/26/2008 :  1:52:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

peter311

Germany
4 Posts

Posted - 11/27/2008 :  03:06:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000