Matlab code to C optimizes code for microcontroller porting

Status
Not open for further replies.

sarathhari

Junior Member level 3
Joined
Dec 26, 2012
Messages
30
Helped
14
Reputation
28
Reaction score
14
Trophy points
1,288
Location
Kottayam
Activity points
1,480
Is there any method for converting Matlab .m file into C code so that we can compile that into any DS microcontrollers like DSPIC. Please Help if anyone knows
 

As I know there is website called as code convert but that convert VB code in to C# but I think it is not that straight forward in case of matlab to C conversion....as Matlab written code many times uses in-built matlab function like plot() or fft etc. those libraries as I know are developed in Java which is object oriented language where are conversion to structured language like C will be very complicated assignment to write..... In my view what you should do isolate the logic and use minimum matlab in-built function .... and then better to write the code in C itself.....now the second point that you have is you want to use this code to embedded platform like DSPIC which comes with different way of chip specific coding..... so I think even you convert the C code from Matlab file will not be directly used on embedded platform....

Good Luck
 


Thank you sir.... i have been trying to convert matlab files to embedded specific codes but couldn't find any tutorial... But how do large automotive companies implement their codes in processors or controllers from Matlab?
 
Last edited:


Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…