Documentation Center

  • Trial Software
  • Product Updates

getpvec

Model parameters and associated uncertainty data

Syntax

pvec = getpvec(sys)
[pvec,pvec_sd] = getpvec(sys)
[pvec,pvec_sd] = getpvec(sys,'free')

Description

pvec = getpvec(sys) returns a vector, pvec, containing the values of all the parameters of the identified model sys.

[pvec,pvec_sd] = getpvec(sys) also returns the 1 standard deviation value of the uncertainty associated with the parameters of sys. If the model covariance information for sys is not available, pvec_sd is [].

[pvec,pvec_sd] = getpvec(sys,'free') returns the values and standard deviation data for only the free parameters of sys.

Input Arguments

sys

Identified model.

Output Arguments

pvec

Values of the parameters of sys.

If sys is an array of models, then pvec is a cell array with parameter value vectors corresponding to each model in sys.

pvec_sd

1 standard deviation value of the parameters of sys.

If the model covariance information for sys is not available, pvec_sd is [].

If sys is an array of models, then pvec_sd is a cell array with standard deviation vectors corresponding to each model in sys.

Examples

Obtain the parameter values for an estimated transfer function.

load iddata1 z1;
sys = tfest(z1,3);
pvec = getpvec(sys);
 

Obtain the parameter values and associated 1 standard deviation values for an estimated state-space model.

load iddata2 z2;
sys = ssest(z2,3);
[pvec, pvec_sd]=getpvec(sys)
 

Obtain the free parameter values and associated 1 standard deviation values for an estimated state-space model.

load iddata2 z2;
sys = ssest(z2,3);
[pvec, pvec_sd]=getpvec(sys,'free')

See Also

| | | |

Was this topic helpful?