How can I use MATLAB Compiler products to integrate a MATLAB function into C++ code?

3 ビュー (過去 30 日間)
Hello,
i have a general question.I have a matlab function as a m.-file. For example:
output = myFunction(input)
or in other words
4x4 Matrix = myFunction(1000x9 Matrix)
can i use the Matlab Compiler and compile myFunction.m to a C++ function, that my collegues could call from VisualStudio for example?
I mostly just want to know IF it's possible. But if you could give me a shor explanation on HOW i would do it, I would also really appreciate it.
Thank you
I have the following Toolbox:
>> ver
-----------------------------------------------------------------------------------------------------
MATLAB Version: 9.7.0.1190202 (R2019b)
MATLAB License Number: ##########
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 19042)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.7 (R2019b)
GUI Layout Toolbox Version 2.3.4 (R2018b)
MATLAB Compiler Version 7.1 (R2019b)
>>

採用された回答

Bruno Luong
Bruno Luong 2021 年 4 月 7 日
編集済み: Stefanie Schwarz 2023 年 9 月 26 日
You need MATLAB Compiler SDK to build shared library
MATLAB Compiler alone can compile only to standalone app
  3 件のコメント
Bruno Luong
Bruno Luong 2021 年 4 月 7 日
If you are still unsure, you might contact TMW for a trial version.
Marten Amschler
Marten Amschler 2021 年 4 月 9 日
thx! I am waiting for a response of the support team now. I will update this threat, once i know more :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeC Shared Library Integration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by