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
 calculating and plotting

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
jamaklin Posted - 01/08/2007 : 02:20:47 AM
Hi! I'm trying to do a code/program with Labtalk that when I give X-values and two Y-values, it makes some calculations for Y-data and then plots the calculated data. But it doesn't plot anything. Here's part of part my code. Can someone tell me what's wrong with it?
Also how can I calculate mean from just a portion of data? Like, if I have 500 points of data but I want to calculate mean just from the first 100 points and then subtract the mean from those 100 points...

Worksheet wks("data1");

Curve crv( wks, 10);
Curve crv2(wks, 11);

GraphPage gpg = gly.GetPage();
gpg.SetShow();

Edited by - jamaklin on 01/08/2007 02:23:09 AM
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 01/08/2007 : 08:34:46 AM
You're using Origin C code which has no meaning in LabTalk. I'm sure that whatever you want to do can be done with either LabTalk or Origin C but you can't mix as you have done. See LabTalk Language Reference or Origin C Language Reference for the appropriate commands.
quote:
Also how can I calculate mean from just a portion of data?
This is how to do it in LabTalk...

http://www.originlab.com/forum/topic.asp?TOPIC_ID=5349

Mike Buess
Origin WebRing Member

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