Nonlinear least square regression
4 views (last 30 days)
Show older comments
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
0 Comments
Accepted Answer
Eli Duenisch
on 23 May 2013
Edited: Eli Duenisch
on 23 May 2013
Do you have the statistics toolbox installed? It supports nonlinear regression - look for NonLinearModel.fit() in the docs.
5 Comments
Tom Lane
on 24 May 2013
Try NonLinearModel.fit capitalized just that way. This should work in the most recent releases of MATLAB. Otherwise try nlinfit.
More Answers (0)
See Also
Categories
Find more on Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!