Documentation Center

  • Trial Software
  • Product Updates

Contents

How the Simulation Data Inspector Compares Time Series Data

To compare time series data, the Simulation Data Inspector:

  1. Converts Simulink® time series data to MATLAB® time series data.

  2. Aligns the time vectors using the default synchronization method union. To change the synchronization method for a signal, add the Sync Method column to the Signal Browser table and choose a method.

  3. Aligns the data vectors using the default interpolation method, zoh (zero-order hold). To change the interpolation method for a signal, add the Interpolation Method column to the Signal Browser table and choose a method.

  4. Differences the data.

  5. Applies the specified tolerances for plotting the Difference . For more information, see How Tolerances Are Applied.

How Tolerances Are Applied

The default values for the relative tolerance and absolute tolerance for a signal is 0. If you specify tolerances, then the Simulation Data Inspector calculates the tolerances as follows:

tolerance = max(absoluteTolerance, relativeTolerance*abs(baselineData));

To change the relative tolerance and absolute tolerance, add the Rel Tol and Abs Tol columns to the Signal Browser table. Double-click the corresponding fields for a signal and type in a value.

Was this topic helpful?