Skip to Main Content Skip to Search
Product Documentation

Extracting Numerical Model Data

You can extract the following numerical data from linear model objects:

The following table summarizes the commands for extracting model coefficients and uncertainty.

Commands for Extracting Model Coefficients and Uncertainty Data

CommandDescriptionSyntax
freqrespExtracts frequency-response data (H) and corresponding covariance (CovH) from any linear identified model.
[H,w,CovH] = freqresp(m)
polydataExtracts polynomials (such as A) from any linear identified model. The polynomial uncertainties (such as dA) are returned only for idpoly models.
[A,B,C,D,F,dA,dB,dC,dD,dF] = ...
       polydata(m)
idssdataExtracts state-space matrices (such as A) from any linear identified model. The matrix uncertainties (such as dA) are returned only for idss models.
[A,B,C,D,K,X0,...
 dA,dB,dC,dD,dK,dX0] = ...
       idssdata(Model)
tfdataExtracts numerator and denominator polynomials (num, den) and their uncertainties (dnum, dden) from any linear identified model.
[Num,Den,Ts,dNum,dDen] = ...
     tfdata(Model)
zpkdataExtracts zeros, poles, and gains (Z, P, K) and their covariances (covZ, covP, covK) from any linear identified model.
[Z,P,K,Ts,covZ,covP,covK] = ...
     zpkdata(m)

You can also extract numerical model data by using dot notation to access model properties. For example, m.A displays the A polynomial coefficients from model m. Alternatively, you can use the get command, as follows: get(m,'A').

You can operate on extracted model data as you would on any other MATLAB vectors, matrices and cell arrays. You can also pass these numerical values to Control System Toolbox commands, for example, or Simulink blocks.

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS