MATLAB: Is it possible to obtain the script file for the fitlm function

fitlmpolyijkStatistics and Machine Learning Toolbox

I need the script file for the fitlm, using the polyijk attribute, so that I can create my own modified function. Is that possible or should I necessarily use the one given by the Matlab statistics toolbox.

Best Answer

edit fitlm
And since fitlm is just a wrapper around LinearModel.fit:
edit LinearModel.fit