converting c++ code to Matlab code using Matlab 9

converting c++ code to Matlab code using Matlab 9

Post by fatim » Tue, 12 Oct 2010 17:11:03


im working on a project using matlab. i want to use some of the already writen codes in C++. i want to use these codes in my project rather than writing them from scratch. is there some way or a chunk of code that might convert C++ code to matlab code or a ".c" file to ".m" file. please if anyone knows do let me know at the earliest.thanks
 
 
 

converting c++ code to Matlab code using Matlab 9

Post by Wayne Kin » Tue, 12 Oct 2010 18:18:03


Hi, If the code is already written in C++, then make a self-contained function out of it and create a mex file.

Wayne