MATLAB: How to create function with custom data type in Legacy Code Tool

custom data typelegacy code toollegacy_codeMATLABs-functionsimulinksimulink coder

Hi,
I have legacy code (function) in C language. I want to create S-Function with Legacy Code Tool. There is a problem with data type because data type of my function is not defined by a Simulink. Please, how can I incorporate data type defined in my library into S-Function?
Thanks!
Vit

Best Answer

Please take a look at the example in the documentation :