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

jonni

United Kingdom
58 Posts

Posted - 02/09/2004 :  10:15:35 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
trying to fit data with the following macro:

%C=Data1_c; // selecting data to fit

nlsf.xBegin=0.015;// setting the range
nlsf.xEnd=0.0175; // of fitting

run.section(fit,Fit1Peak,Gauss); //fitting

problem is that xBegin and xEnd do no change the fitting range, and whole curve is fitted.

how to specify fitting range??

many thanks

Evgeniy

greg

USA
1379 Posts

Posted - 02/09/2004 :  10:46:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Easiest may be to use row index to set the range (this is the way the Data Selector tool works):

mks1=4;mks2=16; // Set fitting range to use from row 4 to 16 in plot
run.section(fit,Fit1Peak,Gauss);

Go to Top of Page

jonni

United Kingdom
58 Posts

Posted - 02/09/2004 :  11:15:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi greg,

is it right that you suggested to do the following:

mks1=xindex(0.015,%C);
mks2=xindex(0.0174,%C);
???

Go to Top of Page

jonni

United Kingdom
58 Posts

Posted - 02/09/2004 :  11:18:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
what is very strange after when i change mks1,mks2 values the following: data1_a=data1_a-0.1 changes values of the data1_a ONLY for the values between mks1 and mks2.
how doing data1_a=data1_a-0.1 change whole rows in data1, but not just between markers...

i tried mks1=-1, it didn't help

:(

Go to Top of Page

greg

USA
1379 Posts

Posted - 02/09/2004 :  12:58:20 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Setting the markers will limit all math, analysis and fitting to the marker range. Setting the MKS1 value to -1 will restore a plot to full range.

Go to Top of Page

jonni

United Kingdom
58 Posts

Posted - 02/09/2004 :  1:51:05 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
unfortunatelly mks1=-1 doesn't help,

even after mks1=-1; data1_a=data1_a+0.1 modifies only the region between previously defined markers
:(


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