954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

convert matlab to c++ code

hi.
i work on image processing.how can i convert my mfile to c++ code?

i try with :
mbuild -setup
mcc -B cpplib:mfile a.m

and matlab compiler give me cpp code but i can not run it. how can add lib & header file that it can run?

is there any way for convert matlab to c++ code?

zahrak
Newbie Poster
1 post since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

hi. i work on image processing.how can i convert my mfile to c++ code?

i try with : mbuild -setup mcc -B cpplib:mfile a.m

and matlab compiler give me cpp code but i can not run it. how can add lib & header file that it can run?

is there any way for convert matlab to c++ code?

heyy
i m too tryin to covert matlab code into c/c++ code
can u help me

ravikant gupta
Newbie Poster
1 post since Dec 2008
Reputation Points: 10
Solved Threads: 0
 

hey
i am trying to convert matlab code into C++ code
please help me........

smilingankit
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

I may be mistaken, but here is my understanding...

You can't convert "matlab code" to "c++ code". What you can do is write c++ code and then give it a matlab interface and "compile" it with the Matlab MEX compiler. The result is a function that you can call from matlab but is actually written in c++.

Look up "matlab mex" and you may find more details.

Good luck,

David

daviddoria
Posting Virtuoso
1,996 posts since Feb 2008
Reputation Points: 437
Solved Threads: 204
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You