The Simulation Data Inspector allows you to view data logged during the fixed-point conversion process. You can use it to inspect and compare the inputs and outputs to the floating-point and fixed-point versions of your algorithm.
For fixed-point conversion, there is no programmatic interface for the Simulation Data Inspector.
Before importing data into the Simulation Data Inspector, you must have previously logged data to the base workspace or to a MAT-file.
The Simulation Data Inspector provides the capability to save data collected by the fixed-point conversion process to a MAT-file that you can later reload. The format of the MAT-file is different from the format of a MAT-file created from the base workspace.
You can customize the organization of your logged data in the Simulation Data Inspector Runs pane. By default, data is first organized by run. You can then organize your data by logged variable or no hierarchy.
You can configure the Simulation Data Inspector to:
Append New Runs
In the Run Options dialog box, the default is set to add new runs to the bottom of the run list. To append new runs to the top of the list, select Add new runs at top.
Specify a Run Naming Rule
To specify run naming rules, in the Simulation Data Inspector toolbar, click Run Options.
You can create a report of the runs or comparison plots. Specify the name and location of the report file. By default, the Simulation Data Inspector overwrites existing files. To preserve existing reports, select If report exists, increment file name to prevent overwriting.
To change how signals are matched when runs are compared, specify the Align by and Then by parameters and then click OK.
To enable the Simulation Data Inspector in the Fixed-Point Converter app, see Enable Plotting Using the Simulation Data Inspector.
To enable the Simulation Data Inspector in the programmatic workflow, see Enable Plotting Using the Simulation Data Inspector.
If you have data in the Simulation Data Inspector and you want to archive or share the data to view in the Simulation Data Inspector later, save the Simulation Data Inspector session. When you save a Simulation Data Inspector session, the MAT-file contains:
All runs, data, and properties from the Runs and Comparisons panes.
Check box selection state for data in the Runs pane.
On the Visualize tab, click Save.
Browse to where you want to save the MAT-file to, name the file, and click Save.
On the Visualize tab, click Open.
Browse, select the MAT-file saved from the Simulation Data Inspector, and click Open.
If data in the session is plotted on multiple subplots, on the Format tab, click Subplots and select the subplot layout.