Negative values in multiple regression
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hey guys,
I got measured data (5 independent values and 1 which depends on the 5 independent ones) and want to create a function y = f(x1,x2,x3,x4,x5). I used nlinfit to do this and get a function which is okay but could be better. In addition, some of my dependent value y are negative, althouht the original resulting data CAN NOT be negative. Is there any possibility to tell nlinfit to find a function y = f(x1,x2,x3,x4,x5) where y is NEVER negative? In comparison to nlinfit, is there any better way do find a nonlinear function y = f(x1,x2,x3,x4,x5)?
2 comentarios
John BG
el 14 de Mzo. de 2017
nlinfit uses some constant and 1 exponential for the approximation.
It may be useful for stiff functions approximation, but with periodic functions may be you would like to consider approximating with a combination of trigonometric functions.
Or may be polynomials would be a better choice.
What is the shape of the function you want to approximate, and over which range do you want it approximated?
John BG
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!