How to create a model using the mdl=LinearModel.fit(X,y)

1 vue (au cours des 30 derniers jours)
Chimezie Umezie
Chimezie Umezie le 8 Oct 2012
I want to use the mdl=LinearModel.fit(X,y) to create a linear Model in Matlab 2011a but I am getting the following error message:
??? Undefined variable "LinearModel" or class "LinearModel.fit".
I have been told that the code can be used in Matlab 2011a however another contributor said the code can only be used for Matlab 2012a.
Thank you

Réponse acceptée

Walter Roberson
Walter Roberson le 8 Oct 2012
Points to the exact release notes that confirm that this was new in R2012a

Plus de réponses (0)

Catégories

En savoir plus sur Linear Algebra dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by