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
 frequency counts and histograms with LabTalk?

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
tinkusch Posted - 10/15/2003 : 02:24:58 AM
Hi,
how can I create a frequency count or a histogram with LabTalk?
To my surprise, the LabTalk function:
histogram(dataset, inc, min, max)
is not working at al with my Origin v7.0273 on a WIN98 computer.
Is there any other LabTalk option for the creation of an histogram or a frequency count?
Thanks for any (urgently needed) help,
bye

Stefan

3   L A T E S T    R E P L I E S    (Newest First)
tinkusch Posted - 10/17/2003 : 03:06:42 AM
Hi Greg and Thomas,
thanks for your help.
Now the histogram function works also on my computer.
(There was a misunderstanding of the proper use of it and from my point of view the comment in origin-help should be improved.)

Thomas:
I did not know that trick before, thanks!

bye

Stefan


[/quote]

Thomas_Unger Posted - 10/15/2003 : 08:07:11 AM
Hallo Stefan,

The easiest way is you copy the internal histogram function in Origin.
Open the script window, select a column in your worksheet, press
Strg and Shift and select in the Plot-menue under "statistical charts"
"histogram + probabilities".
Then the script shows up in your script window.
It basically should look like the following:
(I cannot test here at work because Origin7 (Pro) is still installed on my home PC)

i=200;// ergibt ca. 200 Klassen
limit -r sum.min sum.max i inc;
sum.min-=inc/2;sum.max+=inc/2;
w1=histogram(%C,inc,sum.min,sum.max);
win -T Data Count %CSHK;
col(2)=w1; del w1;
col(1)=data(sum.min+0.5*inc,sum.max+0.5*inc,inc);
col(3)=col(1);col(3)+=0,5*inc;
col(4)=sum(col(2));
set %H -e sum.n;
sum(col(4));
col(4)/=sum.max;
col(4)*=100;

Column 4 in the new worksheet "count" holds the cumulative percentage and column 1 the bins.
Hope this helps a bit.

Thomas
Mike Buess Posted - 10/15/2003 : 08:02:21 AM
Hi Stefan,

The histogram function works fine in v7.0552 (SR4) on my old Win98SE laptop. How does it fail for you?

Mike Buess
Origin WebRing Member

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