Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Linear Regression with a data set array

1 visualización (últimos 30 días)
Chet
Chet el 10 de Jul. de 2013
I have a data set variable, that contains multiple column vectors. Say DS(Demand, Price, Income). I want to regress Demand against Income; but I want to be able to reference the vectors in the data set in the regression function itself. Eg. b=regress(Y,X) becomes b = regress(DS.Demand, DS.Income) - what is the correct syntax for doing this? Thanks Chet

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by