Learn how to a build a cloud-first strategyRegister Now


Convert Matlab to C#

Posted on 2011-05-10
Medium Priority
Last Modified: 2016-03-02
i would change a Matlab code into C#, is there any way to do that?

Question by:Suma5566
LVL 29

Expert Comment

by:Paul Jackson
ID: 35734092
There is no conversion tool available for matlab to c#, you have to rewrite from scratch unfortunately
LVL 30

Expert Comment

ID: 35734216
jacko72 is right - there is no any tool to do that.

Moreover. May be I'm missing something but your matlab code uses matlab libraries. And C# has no such libraries. How will you use your converted code? It's useless without libraries. And you will need to write your own in C#. Or am I missing something?
LVL 15

Accepted Solution

yuk99 earned 2000 total points
ID: 35734995
Yes, there is no code converter from MATLAB to C#.

In the latest 2011a version there is MATLAB Coder that can convert MATLAB code to C or C++, but only subset of most common MATLAB functions.
See http://www.mathworks.com/products/matlab-coder/ for more details.

There is also MATLAB Builder NE to generate .NET and .COM components from MATLAB functions and GUI, that you can integrate into .NET applications, but it's not exactly code conversion.

Your choice of tool (including manual rewriting) should depend on the size and complexity of your MATLAB code to be converted. And the time/money you are ready to spend.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses
Course of the Month20 days, 22 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question