Function Reference
— Function File: B = uintlut (A,LUT)

Computes matrix B by using A as an index to lookup table LUT.

B = uintlut(A, LUT) calculates a matrix B by using LUT as a lookup table indexed by values in A.

B class is the same as LUT.

Demonstration 1

The following code

 uintlut(uint8([1,2,3,4]),uint8([255:-1:0]));
 % Returns a uint8 array [255,254,253,252]

gives an example of how 'uintlut' is used.