Can an S-Function builder input be symbolic?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 19 Déc 2023
Réponse apportée : MathWorks Support Team
le 14 Juin 2024
I'm using S-Function builder in R2021a, and I'd like to set the input size to a symbolic dimension. Is this possible?
Réponse acceptée
MathWorks Support Team
le 19 Déc 2023
S-Function Builder in R2021a does not currently support symbolic dimensions.
If you want to continue down the route of using S-Functions, you will have to modify the generated S-Function to use symbolic dimensions. This doc page is a good starting point:
If you are open to alternatives to the S-Function approach, try the C Function block. The C Function block supports Symbolic Dimensions without doing any extra work, and it lets you specify Initialize, Start, Output, and Terminate code.
Here is relevant documentation about this:
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!