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
 Fixing parameters in nlsf fits
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Hildebrand

USA
3 Posts

Posted - 08/01/2002 :  11:18:02 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have created a user-defined function, but would like to be able to fix some of its parameters. I know how this is done in Origin, but would like to implement it in my LabTalk script. I am doing the following at the moment,

nlsf.init();
nlsf.func$=GaussBen; //GaussBen is user-defined.
y0=0;
xc=0;
w=0.0000003;
A=0.0000000625;

I am trying to fix y0 to zero, but will want to fix others in the future. Any help is much appreciated.

Ben

easwar

USA
1965 Posts

Posted - 08/01/2002 :  4:55:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

You can use NLSF object properties to do this.
For example,
nlsf.v1=0;
nlsf.v2=0;
will set the first and second parameters as fixed.

You can find this and other object properties under the NLSF object in the LabTalk help file.

Easwar
OriginLab.
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