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
 using pkfind x-function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

gatordan82

USA
7 Posts

Posted - 06/10/2010 :  3:58:56 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
originpro 8.0.63.988 SR6
windows xp

I'd like to run the pkfind x-function on a dataset and pick out 3 peaks. They always have (nearly) the same x-values, but their amplitudes can vary greatly. I know how to filter the search so that it will pick out the 3 largest peaks, but sometimes there are other peaks with greater amplitude that I'm not looking for. Is there a convenient way to limit the search to particular values of x?

Shirley_GZ

China
Posts

Posted - 06/11/2010 :  04:57:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

If these peaks always have the same X values as you said, I think there is a workaround to limit the peak finding. You can specify the input data range to exclude the forth peak, such as x=[800, 3000]. Here, you can use Data Selector tool to select the data range firstly, then run the pkFind function. Or you can use the variable "iy" of function pkFind to select interesting rows.

For example,
pkFind iy:=col(b)[1:50] ocenter_x:=<input>!(<new>) ocenter_y:=<input>!(<new>)

Best regards,
Shirley

Originlab Technical Service Team
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