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
 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

66de250

China
31 Posts

Posted - 04/26/2025 :  11:11:16 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
How to output the fitted curve to the specified worksheet after implementing function fitting using a scripting language.

YimingChen

1647 Posts

Posted - 04/29/2025 :  3:27:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Can you provide your script running the curve fitting? Thanks.

James
Go to Top of Page

66de250

China
31 Posts

Posted - 04/29/2025 :  8:41:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for your reply. The script I run for fitting is:
nlbegin iy:=([Adraw2]Data!1, [Adraw2]Data!3) func:=Gauss nltree:=tr;
nlfit 100000;
nlend;
I couldn't obtain the detailed curve data points after the fitting was completed. I consulted the relevant content in Labtalk and the X-Function help, but I didn't find the relevant functional options (perhaps I didn't find them).
quote:
Originally posted by YimingChen

Can you provide your script running the curve fitting? Thanks.

James

Go to Top of Page

YimingChen

1647 Posts

Posted - 04/30/2025 :  10:44:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can generate the result sheets and read the fitted curve from the sheets. make the following change

nlend 1 1;
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