Clear Filters
Clear Filters

Is there a way to include variable size lookup tables in an S-Function

1 view (last 30 days)
Hi,
lets assume I have the following subsystem:
and the lookup table has breakpoints and data of 1x12 size. I can easily build an S-function of this subsystem and change the tuning of the subsystem if I stick to this size, but when I increase/decrease it, I get an error regarding the size of the matrix. Of course, this is a simple example, because in the system that I want to apply it I have 100+ lookup tables that I cannot know their size apriori (they are calibrateable tables). I thought that a way to go around this is to assume a maximum table size, build the S-function based on this and then when using the S-function fill the rest of the data with zeros. However, as you can imagine having too many tables will make this task exhausting.
So my question is; is there a way to overcome this difficutly, so that the s-function can see whichever size of table I will give it to it?

Answers (0)

Categories

Find more on Block and Blockset Authoring in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!