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
 Histogram option
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cosy

Germany
Posts

Posted - 04/11/2005 :  09:41:04 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): Origin 7 PRO
Operating System:Win XP
Hi,
Is there an option in labtalk to output the datapoints (not the frequency count) falling inside a specific bin.
Regards,
Samuel.

Mike Buess

USA
3037 Posts

Posted - 04/11/2005 :  1:44:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Samuel,

The frequency count is the number of datapoints that fall within a given bin. Are you looking for the row numbers of those datapoints? That information is not generated by the histogram plot but you can do it with a LabTalk script or by Origin C. The following example assumes that the values that are binned are in column 2 of the active worksheet. The bin is defined by ymin and ymax so the script types the row numbers for which the column 2 values are between ymin=1 and ymax=2.

ymin=1;
ymax=2;
get col(2) -e npt;
for(i=1;i<=npts;i++) {
if(col(2)[i]>ymin && col(2)[i]<=ymax) ty $(i);
};



Mike Buess
Origin WebRing Member
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