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
 getting fitted data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jim117

Germany
5 Posts

Posted - 03/04/2002 :  1:04:37 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
when I used the following scripts to perform linear regression on a worksheet to get the fitted new y data for analysis, I fing it not working:
//----//testLR.ogs(saved in origin directory)
[main]
stat.reset();
stat.data$=%1; //dataset to fit
stat.errbardata$=%2;
stat.fitxdata$=%3;stat.fitydata$=%4; //dataset used to store fitted x&y values
stat.makex.fitnpts=%5;
stat.lr();
//----//
then in the script window, I wrote:
run.section(testLR.ogs, main, test_rawdata test_errbar test_fitx test_fity numpoints);
# created worksheet of "test" has five columns:
A[X], rawdata[Y], errbar[Y], fitx[Y], fity[Y]

Could anyone help me to point out where is wrong? Thanks!

greg

USA
1379 Posts

Posted - 03/06/2002 :  4:45:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Works fine for me...

Maybe you forgot to initialize numpoints?

Go to Top of Page

jim117

Germany
5 Posts

Posted - 03/07/2002 :  08:23:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks. However, it is still not working for my side. I've already initialized the numpoints and after executed the "run.section" script, no fitted dataset and errorset showed in the worksheet of "test".

why? I am very confused.
Go to Top of Page

greg

USA
1379 Posts

Posted - 03/08/2002 :  10:43:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You don't mention what version you are using. I tried 6.0211(6.0 Release), 6.1052(6.1 Release) and 6.1113(6.1 SR4) and they all worked. Maybe there are specific steps involved with the problem. You should contact your technical support with the details to reproduce the problem.


Edited by - greg on 03/08/2002 10:50:41
Go to Top of Page

jim117

Germany
5 Posts

Posted - 03/12/2002 :  09:14:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Many thanks. Greg. Now it is ok!

jim
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