Main Content

Visualize Data Through Plots

This example shows how to use the plots to visualize the data in the Lookup Table Editor.

  1. Add a 2-D Lookup Table block to a model.

  2. Open the Lookup Table Editor. For example, open the block dialog and click Edit table and breakpoints.

  3. By default, the 2-D Lookup Table block has this data as an example.

    Lookup Table Editor for default data of 2-D Lookup Table.

  4. To create two tabs, one for the spreadsheet and one for the plot, hover between the spreadsheet and plot and click the red X. To view or tile the panes, drag the panes as you want to position them.

  5. Click the data points in the spreadsheet and observe the corresponding red dot in the plot.

    Lookup Table Editor for selected data of 2-D Lookup Table shows red dots in mesh plot.

  6. From the tool strip, click another plot type, such as Line, Surface, or Contour, and reselect the same data. These plots are the equivalent of the MATLAB® functions line, mesh, line, surface, and contour, using the table and breakpoint data.

    Lookup Table Editor for selected data of 2-D Lookup Table shows red dots in line plot.

    Each plot type and data selection gives you another view of the data on that plot type.

  7. To view heatmaps of your data, click Heatmap in the tool strip.

See Also

| | |

Related Topics