Nonlinear regression
Afficher commentaires plus anciens
I have to do a nonlinear regression and I need a little help, should I use nlinfit or nlintool, whats the difference?
Ive runned the following but I get an error.
function chris= ps(beta, X) X = [0.53 0.53 0.53 0.52 0.52 0.52 0.51 0.49 0.49 0.48 0.45 0.38 0.37 0.36 0.34 0.34 0.27 0.19 0.03 0.02]'; Y = [0.002 0.003 0.003 0.006 0.011 0.022 0.051 0.098 0.125 0.16 0.22 0.38 0.41 0.45 0.49 0.55 0.67 0.69 0.69 0.717]';
beta=[1.4 0.537 1.1] b1=beta(1); b2=beta(2); b3=beta(3); chris = b1-b1*(X/b2)^b3;
??? Error using ==> mpower Matrix must be square.
Error in ==> chris at 12 chris = b1-b1*(X/b2)^b3;
Help needed!!! Thanks in advance!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Linear Regression dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!