Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Customize the Simulation Data Inspector Interface

You can customize the Simulation Data Inspector interface to display the information you want, how you want to see it. You can modify both the layout and content of the panels that make up the Simulation Data Inspector interface. You can also change the grouping and alignment of data and the color scheme for the graphical viewing area.

Modify the Simulation Data Inspector Layout

Click the Preferences button in the File section of the Visualize tab. Then, click the Layout button. You can choose to hide or display the navigation and properties panes. When you hide the navigation pane, the properties pane is automatically hidden. The Restore Defaults button at the bottom of the pane restores the settings of the active panel to their default configuration.

Modify Displayed Properties

Columns in the Inspect and Compare panes display plot configuration and signal properties. To add or remove a property in the table, click the Preferences button below the Inspect and Compare pane selection buttons and click Columns. From the list, select the properties that you want to display in the active pane. Columns appear in the table in the order in which you select them.

Column Options for Inspect Pane

Column OptionValue
LineSignal line style and color
UnitsSignal measurement units
Data TypeSignal data type
Sample TimeMethod used to sample the signal
ModelName of the model that generated the signal
Block NameName of the source block for the signal
Block PathPath to the source block for the signal
PortIndex of the signal on the output port of its block
DimensionsDimensions of the matrix containing the signal
ChannelIndex of signal within matrix
RunName of the simulation run containing the signal
Absolute ToleranceUser-specified, positive-valued absolute tolerance for the signal
Relative ToleranceUser-specified, positive-valued relative tolerance for the signal
Override Global ToleranceUser-specified property that determines whether signal tolerances take priority over global tolerances
Time ToleranceUser-specified, positive-valued time tolerance for the signal
Interp MethodUser-specified interpolation method used to plot the signal
Sync MethodUser-specified synchronization method used to coordinate signals for comparison
Time Series RootName of the variable associated with the signal for signals imported from the MATLAB® workspace
Time SourceName of the array containing the time data for signals imported from the MATLAB workspace
Data SourceName of the array containing the signal data for signals imported from the MATLAB workspace

On the Compare pane, many parameters have a Baseline column and a Compare To column that you can display independently. The name of the baseline signal and a column indicating whether the comparisons pass or failed based on the specified tolerances are displayed by default.

Column Options for Compare Pane

Column OptionValue
LineSignal line style and color
Absolute ToleranceUser-specified, positive-valued absolute tolerance for the signal
Relative ToleranceUser-specified, positive-valued relative tolerance for the signal
Max DifferenceThe maximum difference between the Baseline and Compare To signals
Override Global ToleranceUser-specified property that determines whether signal tolerances take priority over global tolerances
Time ToleranceUser-specified, positive-valued time tolerance for the signal
NameName of Compare To signal
UnitsSignal measurement units
Data TypeSignal data type
Sample TimeMethod used to sample the signal
RunName of the simulation run containing the signal
Align BySignal alignment specified in Comparison Options
ModelName of the model that generated the signal
Block NameName of the source block for the signal
Block PathPath to the source block for the signal
PortIndex of the signal on the output port of its block
DimensionsDimensions of the matrix containing the signal
ChannelIndex of signal within matrix
Interp MethodUser-specified interpolation method
Sync MethodUser-specified synchronization method used to coordinate signals for comparison
Time Series RootName of the variable associated with the signal for signals imported from the MATLAB workspace
Time SourceName of the array containing the time data for signals imported from the MATLAB workspace
Data SourceName of the array containing the signal data for signals imported from the MATLAB workspace

View Signal and Run Properties

To view the properties of a signal, select a signal in the Inspect or Compare pane. The properties pane displays the properties of the selected signal. You can edit the properties with a white box to their right directly from the properties pane.

To view the properties of a run, select a run in the Inspect or Compare pane.

On the Compare pane, the Simulation Data Inspector highlights differences in the Baseline and Compare To run and signal properties.

Rename a Run

To rename a run name, you can:

  • Double-click the run row, type the new run name, and press Enter.

  • Click the Name row in the properties pane, type the new run name, and press Enter.

To specify a new run naming rule for subsequent simulation runs, see Specify a Run Naming Rule.

Modify Grouping in Inspect Pane

You can customize the organizational hierarchy of your data in the Inspect pane. The data is grouped first by run name, which cannot be modified. You can then group your data by data hierarchy, model hierarchy, or without further hierarchy. Changes to signal grouping apply only to the Inspect pane, not the Compare pane. If you have a Simscape™ license, you can also group your data by physical system data hierarchy.

As an example, change the grouping in the Inspect pane to group by run name, then by model hierarchy, and then by data hierarchy.

  1. Click the Preferences button in the upper right of the Inspect pane.

  2. Click Group.

  3. In the Group pane, select Model Hierarchy in the first Then By drop-down menu.

  4. In the second Then By drop-down menu, select Data Hierarchy.

The Inspect pane groups the signal data by run name, then by model hierarchy, and then by data hierarchy.

To remove the hierarchy and display a simple list of signals, select None from both Then By: drop-down menus on the Group pane.

If you have a Simscape license, you can group your data by physical system data hierarchy as well, and three Then By: drop-down menus are shown.

Modify Signal Alignment for Comparisons

When the Simulation Data Inspector aligns signals across simulation runs, it attempts to match signals between runs using signal properties. For more information on the properties used for alignment, see Signal Alignment in the Simulation Data Inspector. To modify how signals are aligned for run comparisons:

  1. Click the Preferences button on the File section of the Visualize tab.

  2. Click Alignment.

  3. Select the Align By and Then By drop-down menus.

The default alignment options are: Align By: Data Source, Then By: Path, Then By: SID, and Then By: Signal Name.

Specify Colors and Style

The Simulation Data Inspector provides options for customizing the colors of the graphical display area and the line style and color for each signal.

To modify the colors of the graphical area, click the settings button at the top right of the graph. You can specify colors for the Background, Plot area, Axes, and Grid of the graphical viewing area. Click the box next to each feature to specify its color as a selection from the standard palette or as a custom numerical value. Click Set after you have specified your desired color options.

To specify the line style and color, click the Line column for a signal. If the line column is not shown, add the column using the settings button in the signals pane. Select a color and a line style. You can choose a color from the standard palette or specify a custom color numerically in the Custom tab. Click Set after you have specified your desired color and style options.

Modify Logged Signal Properties

You can modify the line color, line style, and the subplot arrangement of a logged signal from the model. Changes you make in the model are applied to the next run in the Simulation Data Inspector at the start of simulation.

  1. In the model, right-click the logging badge and select Properties to open the Visualization Properties dialog box.

  2. To specify the line style and color, select the Custom style and color check box, and then click the line to select the style and color.

  3. To specify which subplots a streamed signal is plotted on at the start of simulation, enter one or more subplot numbers in the Subplots for signal display box. The number refers to the subplot number in column-major order.

    You can display subplots in configurations ranging from 1 × 1 to 8 × 8. Subplots follow column-wise numbering, from 1 at the top-left subplot to 8 in the bottom left, to 64 at the bottom-right. This number system is fixed, irrespective of the subplot configuration you select. For example, if you display four subplots in a 2 × 2 configuration, the bottom-right subplot of the configuration is numbered 10 and not 4. The number is 10 because in the largest possible 8 × 8 matrix, that subplot is numbered 10 when counted in a column-wise manner.

  4. Click OK, and save the model.

For information on how to log signals, see Log Signals to the Simulation Data Inspector.

Modify a Plot in the Simulation Data Inspector

With the controls available in the Simulation Data Inspector, you can modify your plots to showcase your data. Some of the options facilitate presentation of data, while others allow you to more thoroughly explore data.

GoalAction
Normalize the data for each signal from 0 to 1 along the y-axis of a plot.Open the plot settings and select the Limits tab. Check the Normalize Y Axis box.
Show markers at each sample point on a signal.

Open the plot settings and select the More tab. Check the Show Markers box.

Set the plot axes minimum and maximum values.

Open the plot settings and select the Limits tab. Enter the desired values for the axis limits.

Zoom and pan to inspect the data.

On the Visualize tab, select one of the zoom actions.

Send all the plots to a separate MATLAB figure window.

In the Share section of the Visualize tab, click Send to Figure.

For more information on plotting and customizing your MATLAB data plots, see Types of MATLAB Plots (MATLAB).

Set the interpolation method used for plotting a signal to zero-order-hold or linear.

Select a signal in the Inspect or Compare panes. In the properties table, select an interpolation method from the Interp Method list.

Unlink or link a subplot.

Select a subplot and open the plot settings. On the More tab, check or clear the Link Subplot box.

For more details, see Linked Subplots.

Related Topics

Was this topic helpful?