Seemal Asif
Seemal Asif

Reputation: 29

Integrating MATLAB with C#

I am building an application which needs high response time in a real time environment. I know there are three methods to call MATLAB from C#:

  1. MATLAB Engine using COM automation
  2. .NET Assembly created in MATLAB using Builder for .NET
  3. C Shared library created in MATLAB using Compiler

What are the differences between these methods in terms of speed (execution time)? Any comments about the relative security of the methods would also be appreciated.

Thanks

Upvotes: 2

Views: 6661

Answers (1)

Rajeev Bera
Rajeev Bera

Reputation: 2019

Here is some hint for your question

COM approach This solution is quite slow because of the COM type exchange

Dynamic Data Exchange The Dynamic Data Exchange is a quite old but powerful service of Windows that lets applications communicate and exchange data

C API The direct access to the MATLAB C API is the best solution in terms of performance and features, just let use P/Invoke and some unsafe pointer operations.

You may read more http://www.codeproject.com/Articles/5468/1-2-3-ways-of-integrating-MATLAB-with-the-NET

hope it will helpful.

Upvotes: 2

Related Questions