MATLAB Answers

0

from matlab class to simulink

Asked by Abdullah Alshammary on 24 Dec 2011
Latest activity Edited by John Kelly on 26 Feb 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.

  0 Comments

Sign in to comment.

1 Answer

Answer by Kaustubha Govind on 27 Dec 2011
Edited by John Kelly on 26 Feb 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.

  0 Comments

Sign in to comment.