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
 Origin Forum
 Using constraints in nonlinear fitting
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Viktoriaa

2 Posts

Posted - 03/02/2021 :  12:02:34 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi everyone,

I would like to fit a curve with 4 Gausses. The width of Gauss1 and Gauss 2 should be the same, while those of Gauss3 and Gauss4 are independent.



How can I set up the constrain that three width values w1 w3 and w4 are to be fitted and w1=w2.

Under constraints option I got syntax error message.

Thank you in advance

YimingChen

1593 Posts

Posted - 03/02/2021 :  3:03:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If you use Nonlinear Curve Fit tool, you can set the linear constraint as show blow. Make sure check the box to enable the constraints.


James
Go to Top of Page

Viktoriaa

2 Posts

Posted - 03/03/2021 :  01:10:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much for your reply. The error was that I wrote "w_2" instead of "w__2". Now the fitting works as I would like to :-)
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