Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Variant models, where you don't know the all the model variants in advance

1 visualizzazione (ultimi 30 giorni)
I am looking for a way to define model variants, where you don't have the list of possible variants in advance.
Rationale: I want end users for my blockset library to be able to define their own variants, without having to manually edit the library to set up their own variants inside of 100+ blocks. For that matter, I'd like to be able to do this. Just about every block in my blockset needs to do some custom low-level calculations.
I know several hacky ways to do this, like chaging the ReferenceBlock parameter within the block's MaskInit. But I'd like to avoid those. Suggestions for non-hacky ways to do this that don't involve variants are welcome.
In another case like this, I was able to use Two-Way Connectors to attach a block as a sort of a plugin via a PMIO port. This was actually a really spiffy solution for that case because the low-level custom calculations were only used occasionally, but for my use case here, where nearly every block needs it, that would be extremely unwieldy.

Risposte (0)

Questa domanda è chiusa.

Prodotti


Release

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by