Can i run a Code generated by Matlab coder in visual studio?

Matlab Coder and Visual studio 2015

댓글 수: 2

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.
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Leepakshi
Leepakshi 2025년 4월 7일

0 개 추천

Hey,
To integrate a MATLAB-generated Dynamic Library in Visual Studio:
  1. Create a MATLAB function "foo" and use MATLAB Coder to generate "foo.dll".
  2. Create an Empty Project in Visual Studio.
  3. Include headers and call the "foo" function from "foo.dll".
  4. Set the Visual Studio project platform to x64.
  5. Include necessary directories and libraries in project properties.
  6. 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

카테고리

도움말 센터File Exchange에서 MATLAB Coder에 대해 자세히 알아보기

태그

질문:

2016년 11월 18일

답변:

2025년 4월 7일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by