Clear Filters
Clear Filters

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

2 views (last 30 days)
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 Comments
gullnaz shahzadi
gullnaz shahzadi on 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).

Sign in to comment.

Accepted Answer

Matt J
Matt J on 9 Apr 2019

More Answers (0)

Products


Release

R2016a

Community Treasure Hunt

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

Start Hunting!