Can i run a Code generated by Matlab coder in visual studio?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Machine Learning Enthusiast
el 18 de Nov. de 2016
Respondida: Leepakshi
el 7 de Abr. de 2025
Matlab Coder and Visual studio 2015
2 comentarios
Adam
el 18 de Nov. de 2016
Why wouldn't you be able to? I don't use Matlab Coder personally, but other members of my team convert Matlab code I write into C++ that they use in Visual Studio.
Ryan Livingston
el 21 de Nov. de 2016
And here's a doc page showing how to call a MATLAB Coder generated DLL in Visual Studio:
This page:
describes how to package the generated code and any other possible dependencies to use in another development environment.
Respuestas (1)
Leepakshi
el 7 de Abr. de 2025
Hey,
To integrate a MATLAB-generated Dynamic Library in Visual Studio:
- Create a MATLAB function "foo" and use MATLAB Coder to generate "foo.dll".
- Create an Empty Project in Visual Studio.
- Include headers and call the "foo" function from "foo.dll".
- Set the Visual Studio project platform to x64.
- Include necessary directories and libraries in project properties.
- Build the project and ensure "foo.dll" is accessible to the executable.
This allows you to use a MATLAB-generated Dynamic library within a Visual Studio project.
You can refer to below documentation for in depth steps:
In case it’s needed to automate creation of a Solution (.sln) file for compiling and building code in Visual Studio, refer to below documentation:
Thanks
0 comentarios
Ver también
Categorías
Más información sobre MATLAB Coder en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!