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

jamaklin

Finland
Posts

Posted - 01/08/2007 :  02:20:47 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 01/08/2007 :  08:34:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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