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.

Respuestas (1)

Torsten
Torsten el 25 de Ag. de 2026
Movida: Torsten el 25 de Ag. de 2026
Did you read the section "Version history" under
for alternatives for "setup" ?

1 comentario

Andy P
Andy P el 26 de Ag. de 2026
Thanks, Torsten! Somehow I've never encountered the help page for the setup function. I'll report back once I've digested this.

Iniciar sesión para comentar.

Categorías

Más información sobre Foundation and Custom Domains en Centro de ayuda y File Exchange.

Productos

Versión

R2026a

Preguntada:

el 25 de Ag. de 2026

Comentada:

el 26 de Ag. de 2026

Community Treasure Hunt

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

Start Hunting!

Translated by