Borrar filtros
Borrar filtros

Parabolic regression problem

1 visualización (últimos 30 días)
Dwyane  Wade
Dwyane Wade el 21 de Ag. de 2011
how do you find a b and c in parabolic regression? like in this expression: y= -0.20x^2 + 1.94x + 2.78, how do you get 0.20 1.94 and 2.78??

Respuesta aceptada

bym
bym el 21 de Ag. de 2011
A = [ones(size(x)), x, x.^2];
abc = A\y;
  4 comentarios
Dwyane  Wade
Dwyane Wade el 22 de Ag. de 2011
what does ones and size mean then?
Jan
Jan el 22 de Ag. de 2011
@Francis: Please read the Getting Started chapters in the documentation for such basic questions. "help size" and "help ones" are helpful also, as for all other MATLAB commands.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Descriptive Statistics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by