Everytime i try using my datas and LinearModel.fit it works perfectly, but when i try to use it in a loop i always end up having a matrix (of the correct size) of empty cells… Somebody who has matlab R2013a on a MAC said my said was running perfectly but it doesn't seem to run on a PC with R2012a. Thanks in advance!
V = nchoosek(6,4)for i = 1:15A{i}ยจ= V(i,:)endfor i = 1:15C{i} = horzcat(A{1,i}{1,1},A{1,i}{1,2},A{1,i}{1,3},A{1,i}{1,4})endfor i = 1:15DATA{i} = [C{1,i} Y] %Y is my independent variable
endfor i = 1:15REG{i} = LinearModel.fit(DATA{1,i})
Best Answer