The documentation for the 2-D Lookup Table mentions that it supports fixed-point data type. The data type of the output from the 2-D Lookup Table block can be set by setting the "Output Data Type Mode" parameter in the "Data Types" tab of the parameter dialog for the block. This setting can be used to set the output to be fixed point data.
However, if I give an array of fixed-point data as "output values" in the Lookup table, I receive an error as follows:
Invalid setting in 'test/Lookup Table4' for parameter 'OutputValues'.
The "Vector of Output Values" parameter is set to fi([1 2 3 4],16,15).
Also, in the documentation of 1-D & n-D lookup table, it is mentioned that it only supports the single or double data type. And, when this block is used with fixed point data type, it gives out the right error saying only these data types are supported.
Error reported by S-function 'sfun_lookupnd' in 'untitled/Lookup Table (n-D)': Only double or single datatype is supported.
From the documentation for 2-D Lookup table , it is not clear if 2-D lookup table accepts the fixed point data type for "Vector of output values" parameter.
Best Answer