Documentation

Edit Lookup Tables

You can edit a lookup table using:

  • Lookup Table block dialog box

  • Lookup Table Editor

To edit the lookup table in a block:

  1. Open the subsystem that contains the lookup table block.

  2. Open the lookup table block’s dialog box.

  3. In the Table and Breakpoints tab, edit theTable dataand relevantBreakpointsparameters as needed.

With the Lookup Table Editor, you can skip these steps and edit the desired lookup table without navigating to the block that uses it. However, you cannot use the Lookup Table Editor to change the dimensions of a lookup table. You must use the block parameter dialog box for this purpose.

Edit N-Dimensional Lookup Tables

If the lookup table of the block currently selected in the Lookup Table Editor tree view has more than two dimensions, the table view displays a two-dimensional slice of the lookup table.

TheDimension Selectorspecifies which slice currently appears and lets you select another slice. The selector consists of a 2-by-Narray of controls, whereNis the number of dimensions in the lookup table. Each column corresponds to a dimension of the lookup table. The first column corresponds to the first dimension of the table, the second column to the second dimension of the table, and so on. TheDimension sizerow of the selector array displays the size of each dimension. TheSelect 2-D slicerow specifies which dimensions of the table correspond to the row and column axes of the slice and the indices that select the slice from the remaining dimensions.

To select another slice of the table, specify the row and column axes of the slice in the first two columns of theSelect 2-D slicerow. Then select the indices of the slice from the pop-up index lists in the remaining columns.

例如,下面的选择器显示片(:,:,1) of a 3-D lookup table, as shown under Dimension Selector in the Lookup Table Editor.

To transpose the table display, select theTranspose displaycheck box.

Edit Custom Lookup Table Blocks

You can use the Lookup Table Editor to edit custom lookup table blocks that you have created. To do this, you must first configure the Lookup Table Editor to recognize the custom lookup table blocks in your model.

  1. SelectFile>Configure. The Lookup Table Blocks Type Configuration dialog box appears.

    The dialog box displays a table of the lookup table block types that the Lookup Table Editor currently recognizes. This table includes the standard blocks. Each row of the table displays key attributes of a lookup table block type.

  2. ClickAddon the dialog box. A new row appears at the bottom of the block type table.

  3. Enter information for the custom block in the new row under these headings.

    Field Name Description

    Block type

    Block type of the custom block. The block type is the value of the block'sBlockTypeparameter.

    Mask type

    Mask type of the custom block. The mask type is the value of the block'sMaskTypeparameter.

    Breakpoint name

    Names of the block parameters that store the breakpoints.

    Table name

    Name of the block parameter that stores the table data.

    Number of dimensions

    Leave empty.

    Explicit dimensions

    Leave empty.

  4. ClickOK.

删除自定义查找表阻止类型the list that the Lookup Table Editor recognizes, select the custom entry in the table of the Lookup Table Blocks Type Configuration dialog box and clickRemove. To remove all custom lookup table block types, select theUse Simulink default lookup table blocks listcheck box at the top of the dialog box.

Related Topics

Was this topic helpful?