Can an S-Function builder input be symbolic?

10 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2023 年 12 月 19 日
回答済み: MathWorks Support Team 2024 年 6 月 14 日

I'm using S-Function builder in R2021a, and I'd like to set the input size to a symbolic dimension. Is this possible?

採用された回答

MathWorks Support Team
MathWorks Support Team 2023 年 12 月 19 日
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 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by