Delphi and Matlab DLL

조회 수: 5 (최근 30일)
Ahmad
Ahmad 2011년 5월 10일
Hi. I have an .m file which contains a function that takes some arguments and returns an Array.
I want to compile this file into a DLL that can be used in Delphi7.
All resources I found were related to C/C++/MSVC but not for Delphi.
Any Ideas.?? Thanks in advance.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 5월 10일
Unfortunately, Delphi is not one of the supported compilers with MathWorks' products.
However, could you elaborate on which product you plan to use to compile your MATLAB file into a DLL?
You have two options:
  1. MATLAB Compiler - supports almost all MATLAB functionality, but generates code that still depends on a set of libraries called the MATLAB Compiler Runtime. I don't know of a way to use unsupported compilers to build binaries with this product.
  2. MATLAB Coder - supports a limited subset of MATLAB functionality, but generates standalone C/C++ code. You should be able to compile these in Delphi by investing some time/effort into figuring out the right compiler/linker flags.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by