Access Read-Only Properties of Class (GeneralizedLinearModel)

1 次查看(过去 30 天)
I want to edit the property of a class. For example:
X=randn(100,1);
Y=X + randn(100,1)
mdl=fitglm(X,Y)
but apparently the properties are read-only
>> mdl.Coefficients.Estimate(2)=2
Error using classreg.regr.CompactFitObject/subsasgn (line 233)
The Coefficients property for class GeneralizedLinearModel is read-only.
Is this possible?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by