Direct Look-Up Table (n-D)
Index into an N-dimensional table to retrieve a scalar, vector or 2-D matrix.
Functions & Tables
DirectLookupTable.bmp
The Direct Look-Up Table (n-D) block uses its block inputs as zero-based indices into an n-D table. The number of inputs varies with the shape of the output desired. The output can be a scalar, a vector, or a 2-D matrix. The look-up table uses zero-based indexing, so integer data types can fully address their range. For example, a table dimension using the uint8 data type can address all 256 elements.
You define a set of output values as the Table data parameter. You specify what the output shape is: a scalar, a vector or a 2-D matrix. The first input specifies the zero-based index to the first dimension higher than the number of dimensions in the output, the second input specifies the index to the next table dimension, and so on, as shown by this figure:
The Direct Look-Up Table (n-D) block accepts mixed-type signals of type double, single, int8, uint8, int16, uint16, int32 and, uint32. The output type can differ from the input type and can be any of the types listed for input; the output type is inherited from the data type of the Table data
parameter. In the case that the table comes into the block on an input port, the output port type is inherited from the table input port. Inputs for indexing must be real; table data can be complex.
TextString
Number of table dimensions
The number of dimensions that the Table data parameter must have. This
determines the number of independent variables for the table and hence the
number of inputs to the block The number of dimensions that the Table data
parameter must have. This determines the number of independent variables
for the table and hence the number of inputs to the block (see descriptions for
&âExplicit Number of dimensions&â and &âUse one (vector) input port instead of N
ports,&â below).
String
TextTextTextTextTextText
TextContinuous or discrete