MATLAB: Can I use “LinearModel.fit(X,y) with matlab 2011a

linear regression

I am using matlab 2.12a and I am trying to use mdl=LinearModel.fit(X,y)but am getting an error message

Best Answer

LinearModel.fit was released as part of the R2012a release so you cannot use that with R2011a.