Hi all, i want to do a linear regression using fitlm. I created a table with 6 variables. The table consints of one row where each variable stores 500x20 double elements. I now want to do a linear regression with Var1 as Y and Var2-Var6 as X. So it should look like this:
This has to be done for each row separate. So in the endeffect I should have 1 alpha and 5 Betas for 500 rows. That is my regression command i am trying to execute
But i keep getting this error
Error using classreg.regr.FitObject/selectVariables (line 293)
Predictor variables must be numeric vectors, numeric matrices, or categorical vectors.
Can you please help me? Thanks