MATLAB: Nonlinear least square regression

regression

Hi all i have 17 observation (x and y) the relation between them as follows
y = 0.392 * (1 – (x / J)) ^ i
i want to use nonlinear least square regression to know J and i
Thanks in advance

Best Answer

Do you have the statistics toolbox installed? It supports nonlinear regression - look for NonLinearModel.fit() in the docs.