from matlab class to simulink

3 visualizaciones (últimos 30 días)
Abdullah Alshammary
Abdullah Alshammary el 24 de Dic. de 2011
Editada: John Kelly el 26 de Feb. de 2015
Is it possible to use a matlab user defined class in simulink? What is possible in simulink is to use a matlab user defined function or script but not a class. The solution I could think off is to place the class methods (functions) in a simulink fnc block.

Respuestas (1)

Kaustubha Govind
Kaustubha Govind el 27 de Dic. de 2011
Editada: John Kelly el 26 de Feb. de 2015
See the documentation section Types of Custom Blocks>MATLAB Function Blocks to see what options are available in Simulink to call into MATLAB functions. It is currently not possible to directly call into a class, but you should be able to create wrapper functions to call into the class methods.

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by