This example has been prepared in Visual Studio 2010. You must have VC 2010 and Matlab installed in your system. The code is well commented. Define $MATLABROOT in the Path variable. Also add $MATLABROOT\bin\win64 in your path so that VC++ can see the necessary .dll like libmx.dll and other files for linking. Hope it will work for you. Just build Ctrl+Alt+F7 and Run Ctrl+F5. Hope this helps.
Please revert back if you have comments and questions.
Thanks and Regards,
Debjit Pal (2021). Matlab R2013a and Visual Studio 2010 Triks (https://www.mathworks.com/matlabcentral/fileexchange/40994-matlab-r2013a-and-visual-studio-2010-triks), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!