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
 Histogram option

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
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);
};



Mike Buess
Origin WebRing Member

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