I have a large C++ class implementing a dynamic model. I'm trying to find a simple way to interface this class so that other people can use it from MATLAB and Simulink.
An important requirement is that the Simulink models using the C++ class supports code generation.
Another constraint is given by the way the C++ class is used. To initialize the C++ class one calls several member functions and their order and usage depends on the particular situation. I would like to give the same initialization flexibility also inside Simulink.
Which is the best way to tackle this problem?