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
 3D Surface fitting to user equation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

G.Adderley

UK
Posts

Posted - 02/11/2008 :  07:01:49 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): Pro 8
Operating System: XP

Hi

I am an Origin newbie and I am trying to fit a non linear surface equation of the form z=a*(x^b)*(y^c) where x,y,z are the variables and a,b,c are the parameters to fit. This function is not built into the non-linear surface fitting library so I have attempted to create a user function but being a newbie I have become a bit unstuck.

I have entered the equation in the user equation dialogue but am not sure what else I need to do. Would anybody be able to assit me with this?

Thanks
Geoff

snowli

USA
1426 Posts

Posted - 02/11/2008 :  4:33:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello Geoff,

In Origin 8, user can use Fitting Function Organizer to define and edit fitting functions. Fit is done in NLFit.

Here are detailed steps:
Choose Tools: Fitting Function Organizer.
Highlight Surface Fitting category on the left panel.
Click New Function button.

Now you can create your own fitting function.
E.g.
Function name: myfunc
Set Independent variables: x, y
Dependent Variable: z
Parameters: a, b, c
Function: z=a*(x^b)*(y^c)
You can creat your own parameter initialization code, etc.

Click Save button.
--> The function will be saved under User Files Folder\fitfunc\myfunc.fdf.

Now you can fit your data.
If your data are in XYZ column form in workbook, right click z column and Set it as Z. Highlight z column and choose Analysis: Fitting: Non-linear Surface Fit.
Find your function.
Go to Parameters tab to give initial values of a,b,c.
Click Fit button to fit. (there is also 1-Iter button to do step by step fit, and Fit till converge button).
Fitted surface will be put to a Matrix.
Fit result will be put to a result sheet next to source data sheet.

Note: If your source data in Matrix window of Origin, you can do surface fit as well.


Thanks, Snow Li
OriginLab Corp.







Edited by - snowli on 02/11/2008 4:34:26 PM
Go to Top of Page

G.Adderley

UK
Posts

Posted - 02/12/2008 :  08:12:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Snow Li

It worked a treat!
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