Fitting Powerlaw exponential to the data matlab

Viewed 274

I have two sets of data: y and x. For exampe

y=[5,4,2,1,3,4,...];
x=[1,2,3,4,5,6,...];

I want to fit them below functions and find coefficients a,b,c,a0,b0,c0,a1,b1 and c1. How can I do that? Functions are:

y= a x^b exp(-x/c)

and:

y= a0 x^b0 exp(-x/c0)+ a1 x^b1 exp(-x/c1).
1 Answers
Related