nparams
Number of model parameters
Syntax
np = nparams(sys)
np = nparams(sys,'free')
Description
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.
Input Arguments
|
Identified linear model. |
Output Arguments
|
Number of parameters of For the syntax
|
Examples
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');
Version History
Introduced in R2012a