from matlab class to simulink

10 次查看(过去 30 天)
Abdullah Alshammary
Abdullah Alshammary 2011-12-24
编辑: John Kelly 2015-2-26
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.

回答(1 个)

Kaustubha Govind
Kaustubha Govind 2011-12-27
编辑:John Kelly 2015-2-26
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.

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by