怎样求用matlab nlinfit 拟合的参数的标准误。
Afficher commentaires plus anciens
如题,本人想求matlab nlinfit 拟合的参数的标准误,请各位高抬贵手帮帮我,谢谢大家了!
fun1.m文件:如下
function ydata=fun1(p,xdata)
ydata=p(1)*exp(1+((p(2)-xdata)./p(3))-exp((p(2)-xdata)./p(3)));
% xdata,ydata 为实验所得数据;p( )为参数
Command Window 输入初始数据:
clear
%输入实验数据 xdata,ydata
xdata=[18 21 24 27 30 33]
ydata=[0.6470 0.8167 0.8915 0.8499 0.8312 0.7978 ]
%设定迭代初始值Parameters0,分别代表a,b,c,
Parameters0 =[0.95,28,20] ;
[Parameters, r, j ] = nlinfit ( xdata, ydata, 'fu1',Parameters0)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB 快速入门 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!