Alternative for custom Simscape code setup function?

I have created custom Simscape components (.ssc files) that use the setup function to calculate parameter arrays using a few input values. After my recent update to r2026a, when I build these custom components I get a warning informing me that the setup function will be removed in a future release.
In order to get ahead on future-proofing my code, is there another way to initialize parameters inside the component file such that it can handle operations like adding arrays including units? Some ideas come to mind like intermediate or let-in methods, but I wanted to poll the community's expertise. I can test out and report back on any ideas you provide. Thank you.

답변 (1개)

Torsten
Torsten 2026년 8월 25일 22:32
이동: Torsten 2026년 8월 25일 22:32

0 개 추천

Did you read the section "Version history" under
for alternatives for "setup" ?

댓글 수: 1

Andy P
Andy P 2026년 8월 26일 12:56
Thanks, Torsten! Somehow I've never encountered the help page for the setup function. I'll report back once I've digested this.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Composite Components에 대해 자세히 알아보기

제품

릴리스

R2026a

질문:

2026년 8월 25일 17:45

댓글:

2026년 8월 26일 12:56

Community Treasure Hunt

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

Start Hunting!

Translated by