Number of model parameters
np = nparams(sys)
np = nparams(sys,'free')
returns
the number of parameters in the identified model np
= nparams(sys
)sys
.
returns
the number free estimation parameters in the identified model np
= nparams(sys
,'free')sys
.
Note
Not all model coefficients are parameters, such as the leading
entry of the denominator polynomials in idpoly
and idtf
models.
|
Identified linear model. |
|
Number of parameters of For the syntax
|
Obtain the number of parameters of a transfer function model.
sys = idtf(1,[1 2]); np = nparams(sys);
Obtain the number of free estimation parameters of a transfer function model.
sys0 = idtf([1 0],[1 2 0]); sys0.Structure.Denominator.Free(3) = false; np = nparams(sys,'free');