Borrar filtros
Borrar filtros

Code reuse between several Embedded Matlab Function

2 visualizaciones (últimos 30 días)
KSevcik
KSevcik el 19 de Mzo. de 2015
Comentada: KSevcik el 30 de Mzo. de 2015
I have the same question as this 2011 inquiry:
Is it possible to share code between several Embedded Matlab Function blocks rather than to duplicate it ? In other words, can you have multiple instances of an Embedded Matlab Function block that reference the same piece of code? If not, is there some way to do this with s-functions?
  2 comentarios
Ryan Livingston
Ryan Livingston el 23 de Mzo. de 2015
Is the answer to that question insufficient in some way?
KSevcik
KSevcik el 30 de Mzo. de 2015
Ryan,
The previous answer specifically answered how to do this with embedded matlab functions, but i found that this was not really the best solution. I ended creating a level-2 s-function that I could then reuse in several different places.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by