Can an S-Function builder input be symbolic?
10 次查看(过去 30 天)
显示 更早的评论
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
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!