n-D dynamic lookup tables

6 views (last 30 days)
I would like to make a Simulink block that includes an N-D Table Lookup block, and have that blocks 'table' and 'breakpoints' values set from input ports of the containing block. Is that possible?
Currently I set the lookup table table and breakpoint values from workspace variables, referenced by name. I can change the table and breakpoint values by operations in the (Base) workspace. I would like my model to compute a new table/breakpoint set and use those values in the lookup table block, but without involving the Base workspace at all - that is, to treat the table and breakpoint values as N-D and vector signals in the model.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 16 Sep 2020
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:

More Answers (0)

Categories

Find more on Nonlinearity in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!