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.

Share Simulation Data Inspector Data and Views

After you inspect, analyze, or compare your data in the Simulation Data Inspector, you can share the results with others. You can share plots as images or MATLAB® figures. You can save the Simulation Data Inspector layout as a view, and you can save a session, including both the view and the data.

Save and Load Simulation Data Inspector Sessions

If you want to archive or share data along with a configured view in the Simulation Data Inspector, save the Simulation Data Inspector session. When you save a Simulation Data Inspector session, the MLDATX-file contains:

  • All runs, data, and properties from the Inspect pane

  • Plot display selection for signals in the Inspect pane

  • Subplot layout and line style and color selections

    Note:   Comparison runs and global tolerances are not saved in Simulation Data Inspector sessions.

To save a Simulation Data Inspector session, click the Save button on the Visualize tab. In the Save dialog box, name the file and browse to the location where you want to save the session. Save sessions as MLDATX-files. A status overlay at the bottom-right of the graphical viewing area displays information about the save operation and allows you to cancel at any time.

To load a Simulation Data Inspector session, click Open on the Visualize tab. In the Open dialog box, browse to select the desired MLDATX-file, then click Open. Alternatively, you can double-click the MLDATX-file to launch MATLAB and the Simulation Data Inspector if they are not already open.

Export Data from the Simulation Data Inspector

You can use the Simulation Data Inspector to export data from the Inspect or Compare panes to the base workspace or a MAT-file. You can only export data from one pane at a time. When you export data from the Simulation Data Inspector, the MAT-file contains the signal data and names and the interpolation method used to plot the signals. If you export multiple signals, the Simulation Data Inspector also saves the block path and port index for each signal. To export data:

  1. Select all the signals you want to export on either the Inspect or Compare pane.

    Only selected runs and signals are exported. In this example, only the x1 signals from Run 1 and Run 2 are exported. The check box selection does not affect whether a signal is exported.

  2. Either right-click a signal and select Export Data or click the Export button.

  3. In the Export dialog box, choose whether to export the selected data to the base workspace or a MAT-file.

    If you export the data to a MAT-file, you can specify the name and path for the MAT-file.

  4. Click Export.

Share Simulation Data Inspector Data Views

When you have different sets of data that you would like to visualize in the same way, you can save a view with the Simulation Data Inspector. A view saves the layout and appearance characteristics of the Simulation Data Inspector without saving any of the data. Specifically, a view saves:

  • Plot layout, axis ranges, linking characteristics, normalized axes

  • Location of signals in the plots

  • Signal grouping and columns on display in the Inspect pane

  • Signal color and line styling

To save a view:

  1. Click the Saved Views drop-down arrow.

  2. Select Save View.

  3. In the dialog box, specify a name for the view and browse to the location where you would like to save the MLDATX-file.

  4. Click Save.

To load a view:

  1. Click the Saved Views drop-down arrow.

  2. Select Load View.

  3. Browse to the view you would like to load.

  4. Click Open.

Create Images of Plots

You can copy the plots you make in the Simulation Data Inspector and paste them into other programs to generate images. To copy a single plot image, click the drop-down arrow on the Copy All Plots button and select Copy Plot. The image is copied to your clipboard, so you can paste the image into another program, such as Microsoft® PowerPoint® or Microsoft Word. Alternatively, you can right-click the plot and select Copy Plot.

If you want to copy an image that includes all the plots displayed in the Simulation Data Inspector, click the Copy All Plots button.

Create MATLAB Figures

You can send plots generated in the Simulation Data Inspector to a MATLAB figure with the Send to Figure button. The Send to Figure button sends all the plots displayed in the Simulation Data Inspector to a MATLAB figure. You can use the MATLAB figure tools to customize the appearance of the figure to fit your needs.

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

Related Topics

Was this topic helpful?