Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How do I call an M-file containing variables and several S-Function files when opening a custom block in simulink?

2 vues (au cours des 30 derniers jours)
Diarmaid
Diarmaid le 13 Sep 2012
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi,
I've created a custom block in simulink and it needs to be used by a large number of people so when it's copied into a model I want it to be able to operate without the user having to open an run separate files within their work-space.
These files include an M-file declaring variables and a number of s-function m-files.
Can this be done?

Réponses (1)

Kaustubha Govind
Kaustubha Govind le 13 Sep 2012
I think you should be able to put that code into the block's CopyFcn callback.

Cette question est clôturée.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by