Matlab Coder / Compiler and Classes

9 views (last 30 days)
Hello,
I am trying to deploy some matlab code that I have written to both speed up and hopefully call from a C# program. I am experiencing a number of issues with unsupported functions that can probably be resolved but at a more general level is there 'good' support for converting an application that has been developed primarily in matlab classes... the support page 'Code Generation Features Not Compatible with Classes' has caused concern.
What I really need to know is - is it worth the effort of trying to fix the unsupported functions? Will I find myself defeated at the class / architecture level and therefore be better placed to start rewriting the application in C++/C#?
Any advice / previous experiences greatly appreciated.
TIA, David

Accepted Answer

Titus Edelhofer
Titus Edelhofer on 14 Jan 2015
Hi David,
leaving the speedup aspect aside another option would be to use MATLAB Compiler and MATLAB Builder NE http://www.mathworks.com/products/netbuilder/. There you don't have the restrictions as with MATLAB Coder.
Titus
  6 Comments
Sean de Wolski
Sean de Wolski on 14 Jan 2015
Compiler will be about the same as MATLAB since it's running against the same MATLAB engine - no conversion to C is happening.
Have you considered using parallel computing and/or a GPU for the monte-carlo simulations?
Titus Edelhofer
Titus Edelhofer on 15 Jan 2015
Although you can often speed up MATLAB code using MATLAB Coder, if you have a speed up that large it could be that you are using MATLAB language not in an optimal fashion. I guess you already tried to profile your code using profiler?
Titus

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!