Builder NE Vs CShared- which is the best one?

조회 수: 1 (최근 30일)
premraj
premraj 2011년 7월 25일
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!!!

채택된 답변

Joan Puig
Joan Puig 2011년 7월 25일
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
premraj
premraj 2011년 7월 28일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Getting Started with Microsoft .NET에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by