Builder NE Vs CShared- which is the best one?

1 vue (au cours des 30 derniers jours)
premraj
premraj le 25 Juil 2011
Hello,
we are planning to buy MatLab for a modelling project. I need to integrate MatLab with Dotnet. Can anyone help me to figure out which tool (Builder NE/CShared) is efficient for dot net integration in terms of perfomance? We are ready to buy Builder NE tool if it is more efficient than CShared for dotnet integration.
Thanks in advance!!!

Réponse acceptée

Joan Puig
Joan Puig le 25 Juil 2011
In theory you could just use the basic Compiler product to produce a dll. In my opinion it is much more convinient to use the NE Builder as it creates an interface wich is easiert to use from .NET.
Here are a few questions that can help you decide: How many functions will be called externally? What are the data types of the inputs and outputs? (plain numbers or complex structs) Is there people in the team who can actually code and maintain low/er level C?
Usually the time it takes to call a MATLAB function (that does nothing) from an external language is about 0.2ms for simple inputs and about 1.5ms for an array of 1000 strings. A function that does nothing but returns the inputs as they were passed in takes about 0.2ms as well for simple inputs and 5ms for the 1000 element string array. The elements of the array I used were random UUIDs. You should try to do this analysis with the specific inputs and outputs you will use (ask for a demo license). While you do that, make sure you time the whole cycle, calling native C from .NET also has some overhead.
If you package your simulation in such a way that only one call to MATLAB is required for a relatively long runing task the overhead becomes negligible, so the most important factor to make your decision should be ease of development.
  1 commentaire
premraj
premraj le 28 Juil 2011
Hi Joan, Thanks for the reply.
We will be using both plain numbers and complex structures as inputs and the output will be 2D/3D plots.
we dont have a rosource for managing lower lewel C

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Call Web Services from MATLAB Using HTTP dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by