from matlab class to simulink

조회 수: 4 (최근 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