Hi Dharmesh,
I understand that you have a MATLAB code which needs to be converted to DLL file.
To generate DLLs from MATLAB 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.
Refer to the documentation below to get more information on using MATLAB coder app.
Hope this Helps!