- To generate DLLs from M files you can use the MATLAB Coder App.
- From the Apps toolbar select MATLAB Coder.
- Select the File which you want to convert.
- Define the input Type for your MATLAB Function.
- Check For Runtime issue and click next.
- Click on the drop-down arrow besides "Generate"
- Select Built type: Dynamic Link Library
- Click through all the next steps and generate the DLL.
- Another method is to consider exporting through co-simulation format, FMU (Functional Mock-up Units). Simulink model can be saved as FMU. DIgsilent provides direct support for FMUs.