Matlab Coder / Compiler and Classes

9 vues (au cours des 30 derniers jours)
David
David le 14 Jan 2015
Commenté : Titus Edelhofer le 15 Jan 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

Réponse acceptée

Titus Edelhofer
Titus Edelhofer le 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 commentaires
Sean de Wolski
Sean de Wolski le 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 le 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

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by