Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Christos Patrinos
Christos Patrinos le 22 Oct 2021
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?

Réponses (0)

Catégories

En savoir plus sur Block and Blockset Authoring dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by