Use the Lookup Table Editor
To manage the lookup tables in your environment, use the Lookup Table Editor. Watch How to Use the Lookup Table Editor (5min 9sec).
Visualize and edit lookup table data in a consistent way similar to a spreadsheet editor, regardless of the data source. A variable data source can be from the MATLAB® base workspace, model workspace, or data dictionary.
Explore lookup tables from multiple models, subsystems, and blocks loaded in the current MATLAB session.
Generate reports containing lookup table data and plots.
For 1-D data, the report generates line plots.
For more than 1-D data, the report generates surface plots, one plot for each 2-D slice of data.
Add custom lookup table blocks to the Lookup Table Editor, enabling you to work with them as you do other lookup table blocks.
This graphic is a view of the Lookup Table Editor for the Throttle
Estimation lookup table block in the Model a Fault-Tolerant Fuel Control System example
sldemo_fuelsys model. For this view, the heatmap is enabled and
the mesh and contours for the data are plotted. Observe that the red dots in the plots
represent the data in the selected area of the blue rectangle in the tabular
Start the Lookup Table Editor
Access the Lookup Table Editor in one of these ways:
In Simulink® Editor, on the Modeling tab, click Lookup Table Editor. From this interface, you can open the Lookup Table Editor for Simulink, AUTOSAR Blockset, and Simscape™ lookup table blocks. The Lookup Table Editor can also open for empty models. The Lookup Table Editor also recognizes any custom lookup table blocks that you have registered.
From the AUTOSAR Blockset blocks Curve (AUTOSAR Blockset), Curve Using Prelookup (AUTOSAR Blockset), Map (AUTOSAR Blockset), and Map Using Prelookup (AUTOSAR Blockset), click the edit lookup table button.
In the MATLAB Command Window, type
In Simulink Editor, click a Simulink or AUTOSAR Blockset lookup table block. In the Lookup Table tab that appears, click Lookup Table Editor.
Lookup Table Editor enables you to:
Enter the path to models and subsystems that contain lookup table blocks and the path to lookup table blocks themselves in the lookup table path browser to see them in the list in the Lookup Table Blocks path pane.
In the tabular area, the Lookup Table Editor contains the same lookup table spreadsheet that is available through the
Simulink.LookupTableproperty dialog box. See Edit Lookup Table Data with Lookup Table Spreadsheet.
Generate line, plot, surface, and contour plots for the data.
Enable heatmap overlays for data.
Edit Lookup Tables
You can edit a lookup table using:
Lookup Table Editor — Edit one or more lookup tables without navigating to the blocks, models, or subsystems that contain them.
Lookup Table block dialog box — Edit lookup tables from within a lookup table block.
For more information, see Enter Breakpoints and Table Data
Lookup Table Editor Limitations
The Lookup Table Editor does not support lookup tables containing data specified as
Simulink.VariantVariable. When you try to open a lookup table that contains this data type, the lookup table block returns an error in a pop-up window.
The Lookup Table Editor overwrites expressions set in the block dialog unless they are non-variable names or pure structure field references. For example, if an expression
myDataSet.MyLookupTable.Breakpointsis set as the parameter value, the Lookup Table Editor updates the value of
If the Lookup Table Editor has a data source that is specified more than once, for example, if the same model workspace variable myVar is used for both breakpoints and table, the entire lookup table is read-only.
If the lookup table contains data passed in through a model argument, the Lookup Table Editor treats the local model variable as the data source.
The Lookup Table Editor supports report generation only for the n-D Lookup Table, 1-D Lookup Table, n-D Lookup Table, Interpolation Using Prelookup, Prelookup, and Direct Lookup Table n-D blocks.
The Lookup Table Editor does not support runtime tunability of parameters.
The Lookup Table Editor shows breakpoints for the Interpolation Using Prelookup block only when the Interpolation Using Prelookup block is directly connected to one or more Prelookup blocks.