Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
cosy
Posted - 04/11/2005 : 09:41:04 AM 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.
1 L A T E S T R E P L I E S (Newest First)
Mike Buess
Posted - 04/11/2005 : 1:44:45 PM 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); };