Loading a DLL file in Matlab

127 ビュー (過去 30 日間)
George Alin Raducu
George Alin Raducu 2015 年 11 月 5 日
コメント済み: George Alin Raducu 2016 年 1 月 27 日
Hi. I will have to load an DLL file into Matlab but I do not have a dll header file. Could someone please give some examples of how to build such header file?

採用された回答

Sudhanshu Bhatt
Sudhanshu Bhatt 2015 年 11 月 9 日
Hi George Alin Raducu,
Unfortunately, it is not possible to load a DLL into MALTAB, without a header file. More information on this can be found in the thread below:
Below are some resources that will help you create a MATLAB function into a C/C++ Shared DLL:
Information on how to integrate the C/C++ Shared Library into your application:
Also, there are some limitations to Shared Libraries integration with MATLAB:
Hope this helps!
Thanks
Sudhanshu Bhatt
  1 件のコメント
George Alin Raducu
George Alin Raducu 2016 年 1 月 27 日
Hi,
Thank you very much for your information. I tried to build my own header file and create an S-function in order to load the DLL but I when I'm running the simulation I get only NULL outputs. I guess that I'm doing something wrong therefor I attach my header and c files. Would be great If someone could comment on these files.
Thank you very much!!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by