I want to find coefficients of a equation that gives the relationship between two data sets.

3 views (last 30 days)
I have two columns of data. First column is H (solar radiation), second column is T (temperature). And I know the relationship between them. The relationship is H =a*[1-exp{-b*(T)^c}]. a, b and c are emprical coefficients. And these coefficients are constants. I want to find best fitted emprical coefficients in this data set. I have got 3081 {H,T} values in Excel. Thanks.

Accepted Answer

John D'Errico
John D'Errico on 3 Jul 2016
Edited: John D'Errico on 3 Jul 2016
Use the curve fitting toolbox. Or lacking that, use the optimization toolbox, so lsqnonlin or lsqcurvefit. Or use nlinfit from the stats TB. Or, lacking all of them, use lots of tools you can find on the file exchange.
Expect to have serious numerical problems IF you are not careful. I.e., you will probably want GOOD starting values for those parameters. Exponents are always dangerous to try to estimate. And worse, you have an exponential of an exponentiated parameter.

More Answers (0)

Categories

Find more on Solar Power in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!