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 CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by