As of R2020b, the “n-D Lookup Table” block has been enhanced to accept breakpoints and table parameters via input ports as well as the block dialog. This allows you to easily create dynamic, multidimensional lookup tables by passing parameters in as signals for up to three dimensions.
Refer to the following MATLAB Answers article for workarounds in older releases: