How to fit 5 dimensional independent variables with respect to 2 dimensional dependent variables

2 Ansichten (letzte 30 Tage)
Hi, I am trying to fit a polynomial regression on my problem,
X = [x1,x2,x3,x4,x5] have 300 samples
Y = [y1,...,y32], 300 samples.
I can fit x1 and y1 by polyfit(x1,y1,degree of polynomial);
but i want to consider the whole set of input and output.
is there any toolbox or example code that can work for my problem.
  2 Kommentare
gullnaz shahzadi
gullnaz shahzadi am 9 Apr. 2019
if i want to fit the data as, x = [x1,x2,x3,x4,x5] and y = y1, i tried to use polyfitn, but that is not in my Matlab2016, how can i use this toolbox for my problem?
x and y are 300 samples.(vectors).

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Matt J
Matt J am 9 Apr. 2019

Weitere Antworten (0)

Kategorien

Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und File Exchange

Produkte


Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by