MATLAB: ‘nlinfit’ vs ‘fitnlm’ ‘ErrorModelInfo’

errormodelinfofitnlmnlinfit

Hi,
the function 'nlinfit' returns the parameters of the estimated error model via 'ErrorModelInfo'. How do I get these values when I use the function 'fitnlm'?
I have already looked at the source code of the class 'NonLinearModel', there the access to the property 'ErrorModelInfo' is defined as 'protected'.
Is there a possibility or do I always have to use 'nlinfit' in addition?
Many thanks and greetings

Best Answer

Hi,
There is currently no support for the ErrorModelInfo feature in fitnlm function. I have brought this issue to the concerned people and it might be considered in any future release.