Is there a way to include variable size lookup tables in an S-Function
1 view (last 30 days)
Show older comments
Hi,
lets assume I have the following subsystem:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/775358/image.png)
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?
0 Comments
Answers (0)
See Also
Categories
Find more on Block and Blockset Authoring in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!