Matlab Coder / Compiler and Classes

9 visualizzazioni (ultimi 30 giorni)
David
David il 14 Gen 2015
Commentato: Titus Edelhofer il 15 Gen 2015
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

Risposta accettata

Titus Edelhofer
Titus Edelhofer il 14 Gen 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 Commenti
Sean de Wolski
Sean de Wolski il 14 Gen 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 il 15 Gen 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

Accedi per commentare.

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by