Curve Fitting error for two arrays

I have two arrays:
x=[ 2180000;
6070000;
12700000;
16600000;
25000000;
29400000;
32200000;
36100000;
41600000;
43900000;
47200000;
55000000
]
y= [ 1.0e-07*0.0953;
1.0e-07*0.1060;
1.0e-07*0.1220;
1.0e-07*0.1290;
1.0e-07*0.1480;
1.0e-07*0.1580;
1.0e-07*0.1880;
1.0e-07*0.2510;
1.0e-07*0.3210;
1.0e-07*0.3510;
1.0e-07*0.4470;
1.0e-07*0.6090]
I used a custom equation as :
y=a*exp(-b/(4.14e-21))*exp(((3.2e-9)*(x))/((2)*(1.38e-23)*(300)))
but the problem that I found is : NaN computed by model function, fitting cannot continue. Try using or tightening upper and lower bounds on coefficients.
anyone knows idea of solving this problem?
Thanks!

3 件のコメント

Matt J
Matt J 2014 年 5 月 7 日
What code did you use to do the fitting?
Hisham
Hisham 2014 年 5 月 7 日
編集済み: Hisham 2014 年 5 月 7 日
I used the Curve Fitting Tool
Hisham
Hisham 2014 年 5 月 7 日
I want to find the values of a and b in the equation by using curve fitting. I have x and y as known parameters

サインインしてコメントする。

回答 (1 件)

Hisham
Hisham 2014 年 5 月 7 日

0 投票

Up please

カテゴリ

ヘルプ センター および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

タグ

質問済み:

2014 年 5 月 7 日

回答済み:

2014 年 5 月 7 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by