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中文论坛
Origin 中文论坛 (Chinese Origin Forum)
用LabTalk进行非线性拟合
New Topic
Reply to Topic
Printer Friendly
Author
Topic
vickey
14 Posts
Posted - 05/17/2016 : 05:17:34 AM
用LabTalk进行非线性拟合
range fitx=1, fity=3; // 设置第三列为拟合曲线输出列
nlbegin iy:=(1,2) func:=gauss nltree:=Fitresults; //设置拟合条件,把拟合参数放到Fitresults树中
Fitresults.xc = 5; // 设置峰中心初始值为 5.
//Fitresults.f_xc = 1; // 固定峰中心值为1.
nlfit; // 开始拟合直至收敛
fity=fit(fitx); // 通过拟合结果生成拟合曲线放到第三列
nlend 1 1; //输出拟合报告并设置结果为自动更新
拟合完成后参数结果都存储在Fitresults树里,你可以运行Fitresults.=;然后可以看到这个树里面所包含的所有结果。
如果想把结果放到某个cell,可以用下面的:
col(4)[1] = Fitresults.xc; //被高斯拟合中心放到第四列第一个单元格。
希望对大家有用!
感兴趣的同学可以去到下面的参考页学习:
http://www.originlab.com/doc/X-Function/ref/nlbegin
Edited by - vickey on 05/17/2016 10:38:52 PM
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Viewer Forum
Origin Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000