This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Compare Output with Measured Data

Plot simulated or predicted output and measured data for comparison, compute best fit values

When you identify a model, you can simulate or predict the model response, and compare that response with measured input/output data. This comparison helps you choose among candidate models, and also aids you in validating the identified model you selected. You can plot model response alongside measured output data, while using initial conditions that can be estimated from the data. You can also compute a metric that quantifies how well your model response matches the measured output data.


expand all

compareCompare identified model output and measured output
compareOptionsOption set for compare
goodnessOfFitGoodness of fit between test and reference data
predictPredict state and state estimation error covariance at next time step using extended or unscented Kalman filter, or particle filter
predictOptionsOption set for predict
simSimulate response of identified model
simOptionsOption set for sim
findstatesEstimate initial states of model
findstatesOptionsOption set for findstates
data2stateMap past data to states of state-space and nonlinear ARX models
idparCreate parameter for initial states and input level estimation


Compare Model Output to Measured Data

Compare Simulated Output with Measured Validation Data

This example shows how to validate an estimated model by comparing the simulated model output with measured data that was not used for the original estimation.

Plot Models in the System Identification App

To create one or more plots of your models, select the corresponding check box in the Model Views area of the System Identification app.

Set Initial Conditions

Estimate Initial Conditions for Simulating Identified Models

Estimate initial conditions for use in simulations executed from the command line, from Simulink®, and from the System Identification app,

Reproduce Command Line or System Identification App Simulation Results in Simulink

Resolve differences between simulation results when comparing command-line or System Identification model outputs with Simulink outputs.

Plot Data

Supported Model Plots

Examine available plot types and corresponding supported models.

Compute Model Uncertainty

Compute model parameter uncertainty of linear models.

Toolbox Preferences Editor

Set plot preferences that persist from session to session.