Main Content

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.

Functions

expand all

compareCompare identified model output with measured output
compareOptionsOption set for compare
goodnessOfFitGoodness of fit between test and reference data for analysis and validation of identified models
predictPredict identified model K-step-ahead output
predictOptionsOption set for predict
simSimulate response of identified model
simOptionsOption set for sim
initialConditionInitial condition representation for linear time-invariant systems (Since R2020b)
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

Topics

Compare Model Output to Measured Data

Set Initial Conditions

Plot Data